02-04-2013 10:06 AM
Hi All,
I have a requirement to update field LAGP-IDATU. For that I am looking for a standard SAP function module or BAPI.
My customer does not allow to write code for direct update on table LAGP. Please suggest any method to do it. Its urgent.
Best regards,
Chinmay
02-04-2013 10:18 AM
LAGP is for Storage Bin Table.
The Transaction for Storage Bins is LS03n which is not a complicated one.
you can go for BDC of the same.
IF records are not much , simply CALL Transaction using BDC will do.
or if lot of records there you can also create a BDC session.
Let me know if you need more help or if this helped.
Thanks
Gaurav Guglani
02-04-2013 11:03 AM
Hi Gaurav,
I can not use BDC (as our customer don't approve to use BDC too). Also, I am using transaction LI20 to update my IDATU (button "write off" in the second screen of t-code LI20). I debugged the transaction Li20 and found that there is a function module L_DIFFERENZEN_AUSBUCHEN which is called in update task and it does updates LAGP-IDATU field inside it.
CALL FUNCTION 'L_DIFFERENZEN_AUSBUCHEN' IN UPDATE TASK
EXPORTING XLINK = LINK
XT331 = T331
TABLES INP = INP
INV = INV.
I can't use the above function module as it works in UPDATE TASK. Suggest me an alternative or any other FM which I can use.
Best regards,
Chinmay Ghosh
02-04-2013 10:47 AM
Hi Chinmay,
You can copy the standard function module LESI_BIN_COORD_UPDATE and add the fields you want to update to the custom function module. The function module enqueue and dequeues during the change.
Hope this helps.
Thanks,
Tooshar Bendale
02-04-2013 11:05 AM
Hi Tooshar,
This function module is no help to me as it is NOT updating the field IDATU. Can you please suggest me any other FM to update LAGP-IDATU.
Best regards,
Chinmay Ghosh
02-04-2013 11:20 AM
Hi Chinmay,
You can copy the function module to a custom function module and add the field.
Thanks,
Tooshar Bendale
02-04-2013 11:53 AM
Hi Tooshar,
Even if I am going for a Z function module I have to write an update statement on table LAGP in my source code. This will not be approved by my customer. That's why I am looking for some standard method to update the IDATU field.
Best regards,
Chinmay Ghosh
02-04-2013 1:39 PM