2012 Jan 23 4:56 AM
I am trying to do bdc for ac02, using session method, data is updating in bdcdata table,
its not getting into the database,
PERFORM :
fill_bdc_data USING 'SAPLBAS0' '0300' 'X' ' ' ' ',
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '=NEW',
fill_bdc_data USING '' '' '' 'ASMDT-ASKTX' fs_field-ASKTX, "SERVICE TEXT.
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.
*ERROR
fill_bdc_data using '' '' '' '0300', "'SAPLBAS0' '0300',
fill_bdc_data using '' '' '' 'BDC_CURSOR', "'ASMD-ASNUM', "fs_field-asnum,
fill_bdc_data using '' '' '' 'BDC_OKCODE' '=NEW' ,
ERROR
fill_bdc_data USING 'SAPLBAS0' '0300' 'X' ' ' ' ',
fill_bdc_data USING '' '' '' 'ASMD-ASTYP(01)' fs_field-ASTYP, " SERVICE CATERGORY.
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.
fill_bdc_data USING '' '' '' 'ASMD-MEINS(01)' fs_field-MEINS, " BASE UNIT.
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.
fill_bdc_data USING '' '' '' 'ASMD-MATKL(01)' fs_field-MATKL, " SERVICE GROUP.
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.
fill_bdc_data USING '' '' '' 'ASMD-SPART(01)' fs_field-SPART, " DIVISION.
fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.
fill_bdc_data USING 'SAPLBAS0' '0300' 'X' '' '' ,
fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /12'. " Save.
ENDFORM. " POPULATE_BDCDATA
2012 Jan 23 5:09 AM
Hi,
Check whether the record you have created for recording is updated in the database or not.
Regards,
Vamshi.
2012 Jan 23 5:36 AM
2012 Jan 23 5:35 AM
2012 Jan 23 5:43 AM
hi mishra,
doing that bdc in session method not call transaction method.
2012 Jan 23 6:03 AM
Hey Sagar,
What do you mean by database is not getting updated??
Do you mean that whether session is not getting created? OR
After processing of the session in SM35 tables involved in AC02 are not getting updated?
Please be more specific so that it's easy for us to help you out.
Cheers
VJ
2012 Jan 23 6:10 AM
Hi vishal,
after the process,
data in ac02 is not getting updated,
2012 Jan 23 6:17 AM
hi ,
fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /12'. " Save.
it should be
fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /11'. " Save.
regards
Deepak.
2012 Jan 23 6:19 AM
2012 Jan 23 6:21 AM
hi,
if still not getting saved then debug for saving Using BDC . what you are getting when pressing SAVE or POST .
regards
Deepak.
2012 Jan 23 6:37 AM
Hi,
Check whether you are doing recording properly or not. And try to do recording for more tha one record using t-code SHDB.
still if you have same problem, check in all screen mode ( Mode = 'A' ), definitely u will get some clue.
Ram.