Hi ,
I have enhanced the Additional Data Tab B in VA01 and are populating the custom fields through
IDOC type ORDERS05 .The Standard Function Module IDOC_INPUT_ORDERS is enhanced for the BDC that is called behind.
the EXIT_SAPLVEDA_002 ,which is enhanced with the code that is found in the SDN blog posted earlier by Arun jawahar :
STATICS: l_vbak_added TYPE xfeld,
l_vbap_added TYPE xfeld.
DATA: ls_vbap TYPE vbap.
IF dlast_dynpro = '4001'.
CHECK l_vbak_added IS INITIAL.
*Ok code for addition B Screen.
ls_vbak = dxvbak.
dxbdcdata-fnam = 'BDC_OKCODE'.
dxbdcdata-fval = '=KZKU'.
APPEND dxbdcdata.
CLEAR: dxbdcdata.
*Additional data B screen
dxbdcdata-program = 'SAPMV45A'.
dxbdcdata-dynpro = '4002'.
dxbdcdata-dynbegin = 'X'.
APPEND dxbdcdata.
CLEAR: dxbdcdata.
*Populate data.
dxbdcdata-fnam = "additonal data tab B field name
dxbdcdata-fval = "field value
APPEND dxbdcdata.
CLEAR: dxbdcdata.
dxbdcdata-fnam = 'BDC_OKCODE'.
dxbdcdata-fval = '/EBACK'.
APPEND dxbdcdata.
CLEAR: dxbdcdata.
l_vbak_added = 'X'.
ENDIF.
But once coding is done in the exit , it is preventing the normal BDC flow that is being created by the standard function module
and the cursor after populating the custom fields in Additional data Tab B the cursor is blinking in the item level Material Number with no material number extracted from IDOC segment .Could we retain the normal BDC standard code that is being created by the Function Module and then add or modify the BDCDATA with our code as shown above .
Along with the custom fields the e-mail address and Street3 in the pop up for the partner function needs to be populated .
Once we populate the partner field in the VA01 and press enter a pop up comes up ,where we need to populate the street3 and e-mail address .
Thanks in advance
Amit