Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to set custom delivery fields through a custom program

saradas
Explorer
0 Likes
3,511

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,032

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

8 REPLIES 8
Read only

Former Member
0 Likes
2,033

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

Read only

0 Likes
2,032

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.

Read only

Former Member
0 Likes
2,032

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.

Read only

0 Likes
2,032

The field is like an Approve flag. It is not allowed to edit externally. It is set only through a program.

Read only

Former Member
0 Likes
2,032

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

Read only

0 Likes
2,032

I am looking for more input on option 1. After enhancing the interface, what else need to be done?

Read only

0 Likes
2,032

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.

Read only

0 Likes
2,032

also, the field that you are adding in BAPI interface (exporting) must be optional.