Skip to Content

Sales Order Output

Hi Experts,

We have the below requirement:

SO will be created always with reference to PO in the background. Now we need to pass this SO information to a third party system for which we are triggering an IDOC thru output type(ZOUT), but to trigger the Output we have some conditions like check the output type in PO for ex:if it has ZPUR then trigger otherwise not.

Now my concern here is how we can check the preceding document output type because we cant refer to VBFA while creation, since VBELN in VBFA will not be available in the creation time.

Please suggest how to arrive a logic for this.

Thanks,

Saravanakkumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 18, 2014 at 05:29 PM

    Hi,

    you can create an incompletness procedure at header level where you check that field VBKD-BSTKD is filled, setting status for this field equal to 03, means blocked for delivery. Assign this incompletness procedure to your sales order.

    In NACE, in V1 (sales), check what´s your procedure (standard V10000) and for the message your´re using, create a requirement that checks if sales order is blocked for delivery (check with abaper for coding)

    Regards,

    JM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2014 at 03:37 AM

    Hi,

    Adding to what @joan mas has mentioned, I would suggest you to assign a routine to output type ZOUT in output determination procedure in which you can check if output type 'ZPUR' in PO has been triggered successfully. Make use of table NAST.

    I'm sure that PO number would be coming in one of the fields of data which is being sent to create SO. I think that you might be using BAPI for SO creation, check in it and you would find PO number during runtime before save.

    Regards

    SD

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member K R Saravanakkumar

      Hi Saravana,

      Please tell me that how you are creating SO from PO data?

      The more info you provide, more the chances of getting possible solutions😊

      Regards

      SD

  • Dec 22, 2014 at 06:59 PM

    Hello  Saravanakkumar,

    If my understanding is correct you are working on PO - SO process in which system creates Sales order from Purchase order.

    Basically PO number is reflect to VBKD-BSTKD if Sales order is created from PO through Idoc type : ORDERS05.

    we can get the PO number from Sales order as below.

    And

    pass these PO number to table NAST and get the output type.

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded