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

EKPO-LFRET, BAPI_PO_CREATE1, and BAPI_DELIVERY PROCESSING_EXEC

Former Member
0 Likes
1,746

At my current site, when an STO is manually created via ME21n with one line item, the created line item has ekpo-lfret set to a certain value ("NL".)

But this field is NOT maintainable via BAPI_PO_CREATE1 - nothing like it is in BAPIMEPOITEM.

This is causing me a problem when I try to use BAPI_DELIVERY_PROCESSING_EXEC - I get a VL 295 and I think I'm getting this eror because there's no value in ekpo-lfret for the system to move to the itab field komdlgn-lfart. (My suspicion here is that when BAPI_PO_CHANGE is used to add a line item to a STO that's been manually created, the problem doesn't arise in BAPI_DELIVERY_PROCESSING_EXEC.

So question - has anyone experienced this problem? I need to solve it because we need to use BAPI_DELIVERY_PROCESSING_EXEC because this is the "delivery create" BAPI that explicitly doesn't require entries in VETVG.

PS to Rob - I am going to ask a related question in the financial forum, but purely from a "config" point of view. Please do NOT kill the post as a "dup", because it's NOT.

djh

Yeah but you're one of the more conscientious moderators, Rob.

(Some might say "finicky" rather than "conscientious", but not me ... I would NEVER say that !) ...

Best

djh

6 REPLIES 6
Read only

Former Member
0 Likes
1,383

PS - yes - I know the workaround here is to force "NL" into the t_requests-lfart field provided to BAPI_DELIVERY_PROCESSING_EXEC - but it strikes me that this shouldn't have to be done ...

djh

Read only

0 Likes
1,383

Hi,

have you checked this OSS Note?:

Note 1238654 - Error msg VL 295 when creating direct outbound deliveries

https://service.sap.com/sap/support/notes/1238654

Best regards.

Read only

0 Likes
1,383

Hi Pablo - thanks for the note - I will definitely check it out.

In the meantime, I realized after posting the question that when I provide the itabf the structure BAPIDELICIOUSREQUEST to BAPI_DELIVERY_PROCESSING_EXEC, I can explicitly set "DOCUMENT_TYPE_DELIVERY" in this structure.

And I think this will solve my immediate problem.

But I'm still curious as to why BAPI_PO_CREATE1 isn't defaulting the corresponding ekpo-lfret value into the PO line item in the first place, and that's why I'm going to check your note.

Best

djh

Read only

Former Member
0 Likes
1,383

> PS to Rob - I am going to ask a related question in the financial forum, but purely from a "config" point of view. Please do NOT kill the post as a "dup", because it's NOT.

Put a similar caveat in the other question. I'm not the only moderator around you know

Rob

Read only

0 Likes
1,383

Yeah but you're one of the more conscientious moderators, Rob.

(Some might say "finicky" rather than "conscientious", but not me ... I would NEVER say that !) ...

Best

djh

Read only

Former Member
0 Likes
1,383

From plant not in T161V ...