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.
BDCDATA-PROGRAM = 'SAPMM07M'.
BDCDATA-DYNPRO = '0410'.
BDCDATA-DYNBEGIN = 'X'.
BDCDATA-FNAM = 'MSEG-LGTYP(1)'.
BDCDATA-FVAL = P_LGTYP.
BDCDATA-FNAM = 'MSEG-LGPLA'.
BDCDATA-FVAL = P_LGPBE.
BDCDATA-FNAM = 'BDC_OKCODE'.
BDCDATA-FVAL = '=SICH'.
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,