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

Sales Order BAPI

Former Member
0 Likes
646

Hi,

I have to create a Credit memo request with reference to billing document. So I'm using the FM - SD_SALESDOCUMENT_CREATE with the business object BUS2094.

My Requirement is when I create a Cr.Memo request, the pricing should come from the referenced billing document. By FM is taking the current pricing by default instead of taking from billing document. I have tried with FM-parameter LOGIC_SWITCH-PRICING = 'G'. But It could not help. The only possible values for this parameter are B/G/Space. How would I get the pricing from the invoice into Credit memo request pricing by using this Function module or BAPI?

Thanks in Advance,

Vijay

3 REPLIES 3
Read only

christian_wohlfahrt
Active Contributor
0 Likes
555

Hi Vijay!

You didn't say anything about it: how is condition copying handled, when you manual create a credit memo request?

The copy rules (defined per document type) have to be correct, otherwise the FM has no chance.

Regards,

Christian

Read only

Former Member
0 Likes
555

Hi Christian,

Thanks for your reply. When I manually create a Credit memo request with reference to billing, it is taking the biilling document conditions & values into the consideration and the prices are comming correctly. But It could not inherit the prices when i use the FM. Any alternative solution for this?

Regards,

vijay

Read only

0 Likes
555

Hi Vijay!

OK, would be too easy for a solution. Can you give IDOC ORDERS05 a try? even when you don't use this later, maybe you find a function, which is called by both (IDOC and BAPI) with different values.

Regards,

Christian