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_SIMULATE

Former Member
0 Likes
437

Hi,

Would appreciate some help on this one.

We are using this FM to get a price specific to a customer.

It does this OK except for a certain condition with a specific access. This troublesome access is :-

Camp. ID/Sales org./Distr. Chl/Customer/Material, where the customer field is a hierarchy field (09)

In debug (in SD_COND_ACCESS), I can see that the hierarchy fields are not set, howeber when i debug VA01 i can see these fields set to be the correct hierarchy node and the codition type is brought back to VA01.

When I call the FM it does not return the required condition. It looks like the import structure ORDER_HEADER_IN does not have an area for hierarchy data.

I have also tried to add the hierarcjy data into the import partner table with no luck either.

Any ideas anyone?

Thanks

Tony

1 REPLY 1
Read only

Former Member
0 Likes
338

It looks like VA01 fills in the field VBAK-HITYPE. But where on the import structures can we fill this on BAPI_SALESORDER_SIMULATE????