Skip to Content
avatar image
Former Member

routine creation

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 01, 2008 at 10: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 .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2008 at 11:26 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded