‎2013 Aug 20 8:08 PM
I created a custom tab in Delivery header using BADI LE_SHP_TAB_CUST_HEAD.
The tab contains a check box field which is output only.
But I have a requirement to set this field from another z program.
I tried using the FM's which i used to set and get screen values, but no use.
I saw BADI - LE_SHP_DELIVERY_PROC Method - SAVE_AND_PUBLISH_DOCUMENT but failed to implement this method in my z program.
How can i achieve this? Need your advice. Thanks.
‎2013 Aug 21 7:32 AM
Use BAPI to do it.
Also you will need to move the fields from structure to likp and lips table in BADI.
For more details have a look at this thread
http://scn.sap.com/thread/1469454
Regards
‎2013 Aug 21 7:32 AM
Use BAPI to do it.
Also you will need to move the fields from structure to likp and lips table in BADI.
For more details have a look at this thread
http://scn.sap.com/thread/1469454
Regards
‎2013 Aug 21 5:21 PM
I'm stuck at this place.
Implement the enhancement spot LE_SHP_DELIVERY_UPDATE/UPDATE_HEADER to move custom fields from VBKOK/VBPOK to LIKP or LIPS.
How to implement the LE_SHP_DELIVERY_UPDATE Enhancement?
I tried to create implementation in SE19, but it is asking for a Enhancement class.
Do i need to create a class in se24 and provide it here?
Please explain me in detail about implementing an enhancement point.
Appreciate your help.
‎2013 Aug 21 8:15 AM
Hai Sarada ,
Can i know why you are creating another program to mark the check box . Kindly provide a brief description of the requirement.
Thanks,
S.Rajendranath Raparthi.
‎2013 Aug 21 5:23 PM
The field is like an Approve flag. It is not allowed to edit externally. It is set only through a program.
‎2013 Aug 21 5:33 PM
few options are:
i) use standard BAPI to update this field. you need to enhance BAPI interface as well as code.
ii) you can write a small bdc in your Z program. this will require few more coding.
iii) As other blogger said if you have added this field in delivery table...you can directly use direct UPDATE statement. however this should be be the last option.
Rgds
‎2013 Aug 21 11:22 PM
I am looking for more input on option 1. After enhancing the interface, what else need to be done?
‎2013 Aug 22 6:55 AM
you have to write UPDATE/MODIFY inside the BAPI to update delivery table(s) via. any of available enhancement. BAPIs usually have insert/update only so you have to find suitable place. it should not be difficult if you are sure that new field you are using only in delivery document.
‎2013 Aug 22 7:09 AM
also, the field that you are adding in BAPI interface (exporting) must be optional.