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_SALESORDER_CREATEFROMDAT2 and payment terms issue

Former Member
0 Likes
1,223

Hi,

I have an issue using BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create several multi-row SOs from file. Everything I passed to the bapi interface is set correctly in the corresponding SO except customer payment terms (field BAPISDHD1-PMNTTRMS).

The system allways gets the payment terms from customer master instead of the paramether passed via bapi interface.

I looked arround for similar issue and haven't found anything related.

Could someone point me what am I doing wrong or what else shoud I do in order to have proper payment terms in the SO?

Thanks in advance.

Regards,

Ivaylo Mutafchiev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
863

Hi

Have u sure there's an exit to force the value from master table?

Max

4 REPLIES 4
Read only

Former Member
0 Likes
863

This message was moderated.

Read only

0 Likes
863

Useless answer - points to bapi usage instead of a similar problem. I'm aware how to use the bapi, and what is not obvious for me is why payment terms are pre-set with the value from customer master - means supplied value from file is not taken into considetarion.

Ivaylo

Read only

Former Member
0 Likes
864

Hi

Have u sure there's an exit to force the value from master table?

Max

Read only

0 Likes
863

Thanks Max!

That was it. I was searching accross impelemnted customer exits, BTEs, enhancements without success. In fact the point where the things are going wrong is modification - USEREXIT_MOVE_FIELD_TO_VBKD(SAPMV45A). And we have very few of them so it escapes from my view.

And because of the summer time a lot of colleagues went to the holliday - especially the guy who made this one And there was noone to ask.

Well, in fact when I pushed application consultants to remember what the **** is going on, one of the guys remembered this thing and finaly we fixed the issue.

Thanks again.

Regards,

Ivaylo