11-18-2010 1:31 PM
I have created a BDC for transaction LT03. We input the Warehouse number and Delivery No...then press ENTER and then click on GENERATE TO Item.
Please find herewith below the BDC code for the same.
LOOP AT it_delivery.
IF it_delivery-count > 1.
perform bdc_dynpro using 'SAPML03T' '0151'.
perform bdc_field using 'BDC_CURSOR'
'VBLKK-VBELN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LTAK-LGNUM'
'US1'.
perform bdc_field using 'VBLKK-VBELN'
it_delivery-vbeln.
perform bdc_field using 'RL03T-ALAKT'
'X'.
perform bdc_dynpro using 'SAPML03T' '0152'.
perform bdc_field using 'BDC_OKCODE'
'=TERZ'.
perform bdc_field using 'BDC_CURSOR'
'LVBLK-L2SKR(01)'.
perform bdc_dynpro using 'SAPML03T' '0152'.
perform bdc_field using 'BDC_CURSOR'
'LTAK-LGNUM'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
*perform bdc_transaction using 'LT03'.
CALL TRANSACTION 'LT03'
USING bdcdata
MODE pmode
UPDATE 'S'
MESSAGES INTO messtab.
PERFORM msg_build.
CLEAR bdcdata.
REFRESH bdcdata.
REFRESH messtab.
ENDIF.
ENDLOOP.
The problem is that everytime TO for the last Delivery in the Internal table is not created. This is because of Sucess warning message which i have tried to supress but to no avail.
Now i would like to know if there are any FM's which i can use to achieve the above.
Please note that i would pass the Ware House No,Delivery No, Material Code and Quantity which is there in the delivery.
Kindly give your valuable suggestions to achieve this.
Regards
Jitesh M Nair
11-18-2010 2:06 PM
11-18-2010 3:02 PM
ok...
If you have any example / documentation for the same it will be very useful.
Because you see i have to do an Auto Batch Determination (FIFO basis). I have checked the FM... in that you have to pass Batch and storage bin etc... but i do not want to do the same... I want the program to Auto Determine it just like you do in the LT03 transaction as explain above in my original question.
Regards,
Jitesh M Nair
Edited by: BASIS Admin on Nov 18, 2010 4:03 PM
11-18-2010 5:17 PM
If you have any example / documentation for the same it will be very useful.
Documentation available in se37 itself.