SAP OIJ_EL_B_VBTYP_TO_DOCIND Function Module for Converts TSW VBTYP to Nomination Doc. Indicator
OIJ_EL_B_VBTYP_TO_DOCIND is a standard oij el b vbtyp to docind SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Converts TSW VBTYP to Nomination Doc. Indicator processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for oij el b vbtyp to docind FM, simply by entering the name OIJ_EL_B_VBTYP_TO_DOCIND into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJ_EL_B
Program Name: SAPLOIJ_EL_B
Main Program: SAPLOIJ_EL_B
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIJ_EL_B_VBTYP_TO_DOCIND pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'OIJ_EL_B_VBTYP_TO_DOCIND'"Converts TSW VBTYP to Nomination Doc. Indicator.
EXPORTING
I_VBTYP = "OIL-TSW: TSW Details document type
* I_EBELN = "Purchasing Document Number
* I_BSART = "Order type (Purchasing)
* I_BANFN = "Purchase requisition number
* I_BNFPO = "Item number of purchase requisition
* I_PREQ_RESWK = "Supplying (issuing) plant in case of stock transport order
* I_PREQ_WERKS = "Plant
* IS_EKKO = "Purchasing Document Header
IMPORTING
E_DOCIND = "Reference document indicator (PSX)
EXCEPTIONS
NOT_FOUND = 1 ERROR_IN_GET_SCENARIOS = 2
IMPORTING Parameters details for OIJ_EL_B_VBTYP_TO_DOCIND
I_VBTYP - OIL-TSW: TSW Details document type
Data type: OIJ_EL_VBTYPOptional: No
Call by Reference: Yes
I_EBELN - Purchasing Document Number
Data type: EBELNOptional: Yes
Call by Reference: Yes
I_BSART - Order type (Purchasing)
Data type: BSARTOptional: Yes
Call by Reference: Yes
I_BANFN - Purchase requisition number
Data type: ROIJBRDDOC-DOCNROptional: Yes
Call by Reference: Yes
I_BNFPO - Item number of purchase requisition
Data type: ROIJBRDDOC-POSNROptional: Yes
Call by Reference: Yes
I_PREQ_RESWK - Supplying (issuing) plant in case of stock transport order
Data type: EBAN-RESWKOptional: Yes
Call by Reference: Yes
I_PREQ_WERKS - Plant
Data type: EBAN-WERKSOptional: Yes
Call by Reference: Yes
IS_EKKO - Purchasing Document Header
Data type: EKKOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for OIJ_EL_B_VBTYP_TO_DOCIND
E_DOCIND - Reference document indicator (PSX)
Data type: OIJ_DOCINDOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_GET_SCENARIOS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIJ_EL_B_VBTYP_TO_DOCIND Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_vbtyp | TYPE OIJ_EL_VBTYP, " | |||
| lv_e_docind | TYPE OIJ_DOCIND, " | |||
| lv_not_found | TYPE OIJ_DOCIND, " | |||
| lv_i_ebeln | TYPE EBELN, " | |||
| lv_error_in_get_scenarios | TYPE EBELN, " | |||
| lv_i_bsart | TYPE BSART, " | |||
| lv_i_banfn | TYPE ROIJBRDDOC-DOCNR, " | |||
| lv_i_bnfpo | TYPE ROIJBRDDOC-POSNR, " | |||
| lv_i_preq_reswk | TYPE EBAN-RESWK, " | |||
| lv_i_preq_werks | TYPE EBAN-WERKS, " | |||
| lv_is_ekko | TYPE EKKO. " |
|   CALL FUNCTION 'OIJ_EL_B_VBTYP_TO_DOCIND' "Converts TSW VBTYP to Nomination Doc. Indicator |
| EXPORTING | ||
| I_VBTYP | = lv_i_vbtyp | |
| I_EBELN | = lv_i_ebeln | |
| I_BSART | = lv_i_bsart | |
| I_BANFN | = lv_i_banfn | |
| I_BNFPO | = lv_i_bnfpo | |
| I_PREQ_RESWK | = lv_i_preq_reswk | |
| I_PREQ_WERKS | = lv_i_preq_werks | |
| IS_EKKO | = lv_is_ekko | |
| IMPORTING | ||
| E_DOCIND | = lv_e_docind | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| ERROR_IN_GET_SCENARIOS = 2 | ||
| . " OIJ_EL_B_VBTYP_TO_DOCIND | ||
ABAP code using 7.40 inline data declarations to call FM OIJ_EL_B_VBTYP_TO_DOCIND
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DOCNR FROM ROIJBRDDOC INTO @DATA(ld_i_banfn). | ||||
| "SELECT single POSNR FROM ROIJBRDDOC INTO @DATA(ld_i_bnfpo). | ||||
| "SELECT single RESWK FROM EBAN INTO @DATA(ld_i_preq_reswk). | ||||
| "SELECT single WERKS FROM EBAN INTO @DATA(ld_i_preq_werks). | ||||
Search for further information about these or an SAP related objects