11-19-2010 7:04 AM
Hi all,
We need to develop BDC program to change Asset master data AS92.Could you please let me know how to write the code
with table control for transaction AS92.
Thanks
Mohit
11-19-2010 7:28 AM
HI,
Have you done the recording ? if not check in saptechnical tutorial Or you can search in scn
Regards,
Madhukar Shetty
11-19-2010 7:31 AM
I am using call transaction method. I just want to know how to use table control.
thanks
Mohit
11-19-2010 7:41 AM
Hi ,
This is sample code for table control.
LOOP AT IT_DOCUMENT WHERE BLART EQ 'Z1'.
WA_TABIX = SY-TABIX.
CLEAR : CTR.
CTR = WA_TABIX.
UNPACK CTR TO CTR.
CONCATENATE 'DF05B-PSDIF(' CTR ')' INTO W_CURSOR.
PERFORM FILL_BDCDATA USING :
'X' 'SAPDF05X' '3100',
' ' 'BDC_OKCODE' '/00',
' ' 'BDC_CURSOR' 'DF05B-PSDIF(01)',
' ' 'RF05A-ABPOS' '1',
' ' W_CURSOR W_DIFF1.
ENDLOOP.
Regards,
Madhukar Shetty
11-19-2010 7:51 AM
Hi,
When you record the transaction through SHDB, populate the data in allocations tab.
In field name RA02S-EQUNR(01), '01' is the row number of the items in the table control.
In your program use the above logic to increment the row number.
Regards
Praveen