Hi all,
I need to provide a value to a mandatory field in BDC Recording. The screen which is carrying this field is being called by the OK-CODE "=BU" of the previous screen.
Now, I wrote in program, creating a new form calling the screen with mandatory field and apending the BDCDATA table as follows and placing the perform below to the prior screen's perform.
FORM SAPLM07M-0410.
CLEAR BDCDATA.
BDCDATA-PROGRAM = 'SAPMM07M'.
BDCDATA-DYNPRO = '0410'.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
Storage Type
CLEAR BDCDATA.
BDCDATA-FNAM = 'MSEG-LGTYP(1)'.
BDCDATA-FVAL = P_LGTYP.
APPEND BDCDATA.
Storage Bin
CLEAR BDCDATA.
BDCDATA-FNAM = 'MSEG-LGPLA'.
BDCDATA-FVAL = P_LGPBE.
APPEND BDCDATA.
CLEAR BDCDATA.
BDCDATA-FNAM = 'BDC_OKCODE'.
BDCDATA-FVAL = '=SICH'.
APPEND BDCDATA.
ENDFORM.
But still the fields are not getting appended. It seems, since this screen is not recorded, the data is not getting appended, but not sure.
Any pointers on this would be of great help.
Thanks in advance,
Vamsee.