Skip to Content
avatar image
Former Member

Add a PO in a Sales Order' document flow

Hello,

I am a beginner in ABAP and I would like to know how to add a line in VBFA to add a Purchase Order in the document flow of a Sales Order.

I tried many function, but nothing is working.

I've got the VBFA line I'd like to use (which works when I use an INSERT), the number of both Sales and Purchase Order and that's all.

If you tell me to use a function, could you please tell me which parameters I have to use (I started ABAP programming 2-3 weeks ago so it's still hard for me to understand everything).

In advance, thanks,

Clément Poissonnier (and not Clent)

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 15, 2008 at 08:27 AM

    Hi,

    First off, you really shouldn't ever insert or modify standard SAP tables directly via ABAP code. Google referential integrity for some reasons why.

    If you have only just started ABAP then I think you need to take a step back and go over more of the basics to get a better understanding of how to develop in SAP, not necessarily info around the commands but more about ways of working and standard approaches to development.

    I'm curious why you need to manually manipulate the document flow in this way as it seems a little unusual to force a PO into a sales order's document flow after the SO has already been created.

    Gareth.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi ,

      I also need update document flow , based on PO number using FM SD_SALESDOCUMENT_UPDATEDOCFLO in SO.

      Plesase let me know how to call the FM.

      Best regards,

      Alleiah M