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

Bapi BAPI_INB_DELIVERY_CHANGE - Updating aditional fields

Former Member
0 Likes
4,131

Hi,

We have added some extra fields to the master data of Inbound Deliveries, as append structure to the LIPS database table.

I need to update these fields using the BAPI_INB_DELIVERY_CHANGE. I think that this is posible using the "EXTENSION1" and "EXTENSION2" tables of the BAPI, but, can somebody tell me how to do it? I want to know how to refer these structures to my Z* fields.

On the other hand, if somebody can suggest another better way to do it, it would be perfect.

Thanks in advance and best regards,

Onofre

I will reward points if answer helps

Edited by: Onofre Garcia on Feb 15, 2008 5:09 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,455

Hi

EXTENSION1 and 2 are customer screen exit update fields

you need to add the new fields into the screen of the tcode and then BAPI will update data

Regards

Shiva

Hi

EXTENSION1 and 2 are customer screen exit update fields

you need to add the new fields into the screen of the tcode and then BAPI will update data

Regards

Shiva

7 REPLIES 7
Read only

Former Member
0 Likes
2,455

Hello Onofre,

I had the same issue, we added some fields to LIPS and wanted to get them updated with the BAPI. I used the extension for sales order BAPI's successfully, but the problem for the delivery is that the BAPE structure does not exist for LIPS. hence zou cannot use the extension to automatically populate your z-fields. We tried a BADI that actually had the extension data available, but since you ahve to implement it in your own class you don't have any access to the global data => that didn't work either.

We ended up exporting the values in question (in an internal table) into memory and then getting those values back into the lips table by importing them from memory in a user exit of the delivery.

This solution is not really a nice one, but it was the only option we found and it is working fine.

Hope that helps,

Michael

Read only

Former Member
0 Likes
2,455

Hi Michael,

Thank you very much for sharing your experiences with me. It's true, we have the same issue. I will let open the thread a couple of days more to see if somebody can offer some other idea.

I don't like so much to update directly the lips table, but it seems that it is the only solution.

Best regards,

Onofre.

Read only

Former Member
0 Likes
2,456

Hi

EXTENSION1 and 2 are customer screen exit update fields

you need to add the new fields into the screen of the tcode and then BAPI will update data

Regards

Shiva

Read only

0 Likes
2,455

Hi Shiva,

Could you, please, be more clear? I'm working with transaction "change usage decision" (qa14). Depending on the values that the user fills in this transaction I have to decide the values of the z* fields (lips table) of the related inbound.

I can not modify the screen of the qa14 transaction, so I can't see how to use your explanation.

It would be nice if you could help me.

Thanks Shiva,

Onofre

Read only

0 Likes
2,455

HI

Add the created fields in screen and update the same using the user exit or BADI

Try creating PID for these and set parameter Ids with the values and try

regards

Shiva

Read only

Former Member
0 Likes
2,455

Dear Onofre,

I also had the similar prob . I used the extension for sales order BAPI's successfully, I have done through BADI that actually had the extension data available, u need to implement BADI , what u have to do just move the required fields of BADI Method from yr BAPI return structure fileds, Rest the BADI performs. If any prob Watch it in Debugging.

Hope this will help,

P Singh

Read only

Former Member
0 Likes
2,455

Hi again,

Maybe my explanation was not perfect, I'll try it again:

I have the fields that I want to update in the screen of the transaction vl32n (and in the lips table, of course).

I want to modify these fields from the qa14 transaction, where I have the corresponding user exit.

When I am in the user exit of the qa14 transaction, how can I modify the fields of the lips table? Of course I know how to get the inbound delivery and so on. But I don't know how to use the bapi to update that z* fields.

Thanks to everybody,

Onofre