09-01-2008 6:24 AM
Hi folks,
i have below requirement
1.Get the Billing Document numbner.
2.Through document flow get the Sales Document number and document type.
3.Check if the Document type is Proejcts Order type.
4.If the Sales Document type is Projects Related then send the return code 4 .
to reach the above requirement, how can i write the code in pricing routine, could any one help me on this,
thanks in advance.
09-01-2008 11:27 AM
Hi ,
First of all where is routine to be called when do u do billing .
if yes then
xvbrk-vbeln would be Billing document number
xvbrp-aubel would be sales order number .
based on that select from VBAK will get document type .
09-01-2008 11:57 AM
09-01-2008 12:26 PM
Hi,
First get the billing document number from table VBRK.
Get the sales document number of particular billing document by using table VBFA.
For this sales order number check the AUART field values in table VBAK.
If AUART is project related then retunr sy-subrc = 4.
Thanks,
radha.