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

condition for purchase order

Former Member
0 Likes
406

hello everyone ,

i got a invoice number , and now i have to write a condition or apply a logic in programming if the invoice has been generated from the sales order or from the purchase order .

also i dont want to check the document flow , i need a logic to write

please let me know

i will be very grateful.

sumit

hello everyone ,

i got a invoice number , and now i have to write a condition or apply a logic in programming if the invoice has been generated from the sales order or from the purchase order .

also i dont want to check the document flow , i need a logic to write

please let me know

i will be very grateful.

sumit

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
385

Presumably you are referring to the accounting document. Among other fields, you can use the BKPF-AWTYP (Reference Transaction) field to distinguish between the two types of documents. SD/Billing sourced documents will have value 'VBRK'. PO/Invoice Receipt sourced documents will have value 'RMRP'. Is that your question?

Read only

Former Member
0 Likes
385

Moderator message - Duplicate post locked

Rob