Merging Sales Analysis and Purchase Analysis

Hi Guys
is it possible to merge the Sales and Purchase Analysis into one report? maybe if i had the SQL statements and then using a union all would work? i would like to see all /AR invoices and credit notes on one report, with gross profit margin etc, is this possible? i will always run the report by Item Group (Monthly)
Thanks
Edited by: Euston Ferreira on Oct 29, 2008 12:02 PM
Edited by: Euston Ferreira on Oct 29, 2008 12:56 PM

Hi Euston
This will be achieved by using the OINM table which contains the item codes, document numbers, BP, IN/Out Qty, G/L Accounts, etc.
Let me know if you need help with the query.
Kind regards
Peter Juby

Similar Messages

  • Standard program for unbilled  sales orders and purchase order items

    Can anyone advice,  is there any standard program which gives the unbilled sales order and purchase order items.

    Hi,
    Use the T.Code VA05/VA05n for list of all the sales order s which are open.
    Take T.Code:VA05N
    Select the option "Open Sales Orders".
    Execute.
    It will give you all the orders which are open.
    The standard program for this is:"SD_SALES_ORDERS_VIEW".
    The same you can also get by using the T.Code VF04.
    In this if your scenario is "Order related",then select the option "Order related".
    Else if it is "Delivery related",then select "Delivery-related".
    Execute.
    The standatd program for this is:"SDBILLDL".
    T.Code:VF05/VF05n is for list of billing documents.
    Regards,
    Krishna.
    Note:Pls search the forum.

  • Sale registers and purchase registers

    can anybody help me to know wat do u mean by sales registers and purchase registers.im new to abap and is struggling to understand the flow of there purchase orders and sale orders  and registers.
    im writing a report program where im printing  both sales and purchase registers for a particular period.
    regards...
    Ajith.

    i a sending u the code for sale sregister give reward points if helpful
    Program ID       : zsales_register
    Transaction Code : *
    Author           : Pinak Pani Chaudhuri
    Description      : Sales Register Report
    Project          : SSSL
    Version          : 1.0
    Change History
        Date   |   Programmer   |   Corr. #   |   Description
               |                |             |
               |                |             |
    REPORT  ZSALES_REGISTER
               LINE-SIZE 351
               NO STANDARD PAGE HEADING
               LINE-COUNT 65
               MESSAGE-ID 00.
           TABLES                                                        *
    TABLES: VBRK,                          "Billing Document: Header Data
            VBRP,                          "Billing Document: Item Data
           BKPF,                          "Accounting document header
          t685t,                         "Conditions: Types: Texts
            KNA1,
            KONV.                          "Conditions (Procedure Data)
           INTERNAL TABLES AND STRUCTURES                                *
    *internal table for item data
    DATA: BEGIN OF IT_ITEM OCCURS 0,
             BUDAT LIKE BKPF-BUDAT,
             BELNR LIKE BKPF-BELNR,
             POSNR LIKE VBRP-POSNR,
             VBELN LIKE VBRK-VBELN,
             WERKS LIKE VBRP-WERKS,
             KUNAG LIKE VBRK-KUNAG,
             KNUMV LIKE VBRK-KNUMV,
             NAME1 LIKE KNA1-NAME1,
             BASE_PRICE LIKE KONV-KWERT,
             BAS_EXC_DUTY_RATE LIKE KONV-KBETR,
             BAS_EXC_DUTY_AMT LIKE KONV-KWERT,
             ECESS_RATE LIKE KONV-KBETR,
             ECESS_AMT LIKE KONV-KWERT,
             LST_VAT_RATE LIKE KONV-KBETR,
             LST_VAT_AMT LIKE KONV-KWERT,
             SUBCHARGE_RATE LIKE KONV-KBETR,
             SUBCHARGE_AMT LIKE KONV-KWERT,
             CST_RATE LIKE KONV-KBETR,
             CST_AMT LIKE KONV-KWERT,
             OTHERS LIKE KONV-KWERT,
             V_VAL LIKE KONV-KWERT,
             TOTAL LIKE KONV-KWERT,
          END OF IT_ITEM.
    *internal table to fetch customer name
    DATA: BEGIN OF IT_KNA1 OCCURS 0,
             NAME1 LIKE KNA1-NAME1,
          END OF IT_KNA1.
    *internal table for price data
    DATA: BEGIN OF IT_KONV OCCURS 0,
             KNUMV LIKE KONV-KNUMV,
             KPOSN LIKE KONV-KPOSN,
             KSCHL LIKE KONV-KSCHL,
             KBETR LIKE KONV-KBETR,
             KWERT LIKE KONV-KWERT,
          END OF IT_KONV.
    *Work area fro item internal table
    *data wa_item like it_item.
    *VARIABLES
    DATA: V_VBELN         LIKE VBUK-VBELN,
          V_VAL           LIKE KONV-KWERT,
          TOTAL           LIKE KONV-KWERT,
          V_PR00           LIKE KONV-KWERT,
          V_JEX2           LIKE KONV-KWERT,
          V_JCES           LIKE KONV-KWERT,
          V_JIN2_JIN6           LIKE KONV-KWERT,
          V_ZLSR           LIKE KONV-KWERT,
          V_JIN1           LIKE KONV-KWERT,
          V_OTHERS           LIKE KONV-KWERT,
          V_KSCHL LIKE KONV-KSCHL,
          V_TEMPVAL(15),
          V_BASIC_PRICE    LIKE KONV-KBETR,
          V_REPID   LIKE  SY-REPID.        "For report id
    *SELECTION SCREEN DEFINITIONS
      SELECTION-SCREEN BEGIN OF BLOCK B1.
      SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-000.
      PARAMETERS: P_COMCOD LIKE BKPF-BUKRS." OBLIGATORY.
      SELECT-OPTIONS: S_DATE FOR BKPF-BUDAT." OBLIGATORY.
      SELECTION-SCREEN END OF BLOCK B .
      SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: P_EX1 RADIOBUTTON GROUP RAD1.
      SELECTION-SCREEN COMMENT 5(50) TEXT-EX1.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN SKIP 1.
      SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: P_EX2 RADIOBUTTON GROUP RAD1 DEFAULT 'X'.
      SELECTION-SCREEN COMMENT 5(50) TEXT-EX2.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN SKIP 1.
      SELECTION-SCREEN END OF BLOCK B2 .
      SELECTION-SCREEN END OF BLOCK B1.
    INITIALIZATION
      INITIALIZATION.
      V_REPID = SY-REPID.
    p_ex1 = 'X'.
    IF P_EX1 = 'X'.
        SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-002.
        PARAMETERS: P_PLANT LIKE VBRP-WERKS." OBLIGATORY.
        SELECTION-SCREEN END OF BLOCK B3 .
    ENDIF.
    *START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM GET_DATA.
    *END-OF-SELECTION
      IF NOT IT_ITEM[] IS INITIAL.
        PERFORM DISPLAY_DATA.
      ELSEif p_plant is initial.
        if p_ex1 = 'X'.
         MESSAGE S011(ZMSG).
        else.
         MESSAGE S012(ZMSG).
        endif.
      else.
       MESSAGE S012(ZMSG).
      ENDIF.
    *&      Form  GET_DATA
          text
    form for get data
    FORM GET_DATA.
    *Getting BKPF-VBRK-VBRP details based on selection values
      IF P_EX1 = 'X' .
        SELECT ABUKRS ABUDAT ABLART ABELNR AAWTYP AAWKEY
               BPOSNR BWERKS B~VBELN
               CKUNAG CVBTYP C~KNUMV
               INTO  CORRESPONDING FIELDS OF TABLE IT_ITEM
               FROM BKPF AS A
               JOIN VBRP AS B
               ON AAWKEY = BVBELN
               JOIN VBRK AS C
               ON BVBELN = CVBELN
               WHERE A~BUKRS = P_COMCOD AND
                     A~BUDAT IN S_DATE AND
                     A~AWTYP = 'VBRK' AND
                     ( A~BLART = 'DR' OR
                       A~BLART = 'DG' OR
                       A~BLART = 'DA' ) AND
                     B~WERKS = P_PLANT.
      ELSEIF P_EX2 = 'X'.
        SELECT ABUKRS ABUDAT ABLART ABELNR AAWTYP AAWKEY
               BPOSNR BWERKS B~VBELN
               CKUNAG CVBTYP C~KNUMV
               INTO  CORRESPONDING FIELDS OF TABLE IT_ITEM
               FROM BKPF AS A
               JOIN VBRP AS B
               ON AAWKEY = BVBELN
               JOIN VBRK AS C
               ON BVBELN = CVBELN
               WHERE A~BUKRS = P_COMCOD AND
                     A~BUDAT IN S_DATE AND
                     A~AWTYP = 'VBRK' AND
                     ( A~BLART = 'DR' OR
                       A~BLART = 'DG' OR
                       A~BLART = 'DA' ).
      ENDIF.
    *Getting KNA1 details based on selection values
      LOOP AT IT_ITEM.
        SELECT SINGLE NAME1 FROM KNA1 INTO IT_KNA1
                            WHERE KUNNR = IT_ITEM-KUNAG.
        APPEND IT_KNA1.
        MOVE IT_KNA1-NAME1 TO IT_ITEM-NAME1.
        MODIFY IT_ITEM.
        CLEAR IT_ITEM.
        CLEAR IT_KNA1.
      ENDLOOP.
    if not it_item[] is initial.
    *Getting pricing for the seleted values
      SELECT KNUMV KPOSN KSCHL KBETR KWERT
             FROM KONV
             INTO TABLE IT_KONV
             FOR ALL ENTRIES IN IT_ITEM
             WHERE KNUMV = IT_ITEM-KNUMV
             AND   KPOSN = IT_ITEM-POSNR.
      LOOP AT IT_KONV.
        IT_KONV-KBETR = IT_KONV-KBETR / 10.
        MODIFY IT_KONV.
        CLEAR IT_KONV.
      ENDLOOP.
    *Filling item table for rest
      PERFORM GET_VALUE.
    ENDFORM.
          FORM DISPLAY_DATA                                             *
      FORM TO DISPLAY OUTPUT                                            *
    TOP-OF-PAGE.
      WRITE: / 'The Sales Register from ', S_DATE-LOW, 'to', S_DATE-HIGH,
               P_COMCOD, P_PLANT.
      SKIP 2.
          FORM DISPLAY_DATA                                             *
    FORM DISPLAY_DATA.
      SORT IT_ITEM BY WERKS VBELN.
      IF P_EX1 = 'X'.
        WRITE: / 'posting date', 16 'billing doc', 30 'sold to party',
        55 'Name', 87 'base price',
        104 'basic exc rate', 122 'basic exc amt', 140 'ecess rate',
        161 'ecess amt', 175 'lst/vat rate', 192 'lst/vat amt',
        209 'surcharge rate', 227 'surcharge amt', 246 'cst rate',
        266 'cst amt', 284 'OTHERS', 301 'sub total'.
        WRITE: SY-ULINE.
        LOOP AT IT_ITEM.
          WRITE: / IT_ITEM-BUDAT, 15 SY-VLINE, 16 IT_ITEM-VBELN,
          30 SY-VLINE, 31 IT_ITEM-KUNAG, 45 SY-VLINE,
          46 IT_ITEM-NAME1, 80 SY-VLINE, 81 IT_ITEM-BASE_PRICE, 98 SY-VLINE,
          99 IT_ITEM-BAS_EXC_DUTY_RATE, 115 SY-VLINE,
          116 IT_ITEM-BAS_EXC_DUTY_AMT, 133 SY-VLINE,
          134 IT_ITEM-ECESS_RATE, 150 SY-VLINE, 151 IT_ITEM-ECESS_AMT,
          168 SY-VLINE, 169 IT_ITEM-LST_VAT_RATE, 185 SY-VLINE,
          186 IT_ITEM-LST_VAT_AMT, 203 SY-VLINE,
          204 IT_ITEM-SUBCHARGE_RATE, 221 SY-VLINE,
          222 IT_ITEM-SUBCHARGE_AMT, 239 SY-VLINE, 240 IT_ITEM-CST_RATE,
          256 SY-VLINE, 257 IT_ITEM-CST_AMT, 274 SY-VLINE,
          275 IT_ITEM-OTHERS, 292 SY-VLINE,
          293 IT_ITEM-V_VAL, 317 SY-VLINE, 318 IT_ITEM-WERKS,
          325 SY-VLINE, 326 IT_ITEM-BELNR.
    *write: sy-uline.
        ENDLOOP.
        WRITE: SY-ULINE.
        SKIP 1.
        WRITE:  81 V_PR00, 116 V_JEX2, 151 V_JCES, 186 V_JIN2_JIN6,
                221 V_ZLSR, 256 V_JIN1, 273 V_OTHERS, 291 IT_ITEM-TOTAL.
      ELSEIF P_EX2 = 'X'.
        SORT IT_ITEM BY WERKS VBELN.
        WRITE: / 'plant', 16 'billing doc', 35 'base price',
        55 'basic exc rate', 75 'basic exc amt', 95 'ecess rate',
        115 'ecess amt', 135 'lst/vat rate', 155 'lst/vat amt',
        175 'surcharge rate', 195 'surcharge amt', 215 'cst rate',
        235 'cst amt', 255 'OTHERS', 275 'sub total'.
        WRITE: SY-ULINE.
        LOOP AT IT_ITEM.
          WRITE: / IT_ITEM-WERKS, 15 SY-VLINE, 16 IT_ITEM-VBELN,
          35 SY-VLINE, 36 IT_ITEM-BASE_PRICE, 55 SY-VLINE,
          56 IT_ITEM-BAS_EXC_DUTY_RATE, 75 SY-VLINE,
          76 IT_ITEM-BAS_EXC_DUTY_AMT, 95 SY-VLINE,
          96 IT_ITEM-ECESS_RATE, 115 SY-VLINE, 116 IT_ITEM-ECESS_AMT,
          135 SY-VLINE, 136 IT_ITEM-LST_VAT_RATE, 155 SY-VLINE,
          156 IT_ITEM-LST_VAT_AMT, 175 SY-VLINE,
          176 IT_ITEM-SUBCHARGE_RATE, 195 SY-VLINE,
          196 IT_ITEM-SUBCHARGE_AMT, 215 SY-VLINE, 216 IT_ITEM-CST_RATE,
          235 SY-VLINE, 236 IT_ITEM-CST_AMT, 255 SY-VLINE,
          256 IT_ITEM-OTHERS, 275 SY-VLINE,
          276 IT_ITEM-V_VAL, 295 SY-VLINE.
    *write: sy-uline.
        ENDLOOP.
        WRITE: SY-ULINE.
        SKIP 1.
        WRITE:  36 V_PR00, 76 V_JEX2, 116 V_JCES, 156 V_JIN2_JIN6,
                196 V_ZLSR, 236 V_JIN1, 256 V_OTHERS, 276 IT_ITEM-TOTAL.
      ENDIF.
    ENDFORM.                               " DISPLAY_DATA
          FORM GET_VALUE                                                *
    TO FETCH THE PRICE FROM IT_KNA1 DEPENDING UPON CONDITION TYPE      *
    FORM GET_VALUE.
    *Getting BASE VALUE
    *clear total.
      LOOP AT IT_ITEM.
        PERFORM GET_PRICE.
      ENDLOOP.
    ENDFORM.
          FORM GET_PRICE                                                *
    FORM GET_PRICE.
      CLEAR V_VAL.
      LOOP AT IT_KONV WHERE KNUMV = IT_ITEM-KNUMV.
                                           " and   kposn = it_item-posnr.
        V_KSCHL = IT_KONV-KSCHL.
        CASE V_KSCHL.
    *For basic value
          WHEN 'PR00'.
            IT_ITEM-BASE_PRICE = IT_ITEM-BASE_PRICE + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_PR00 = V_PR00 + IT_KONV-KWERT.
          WHEN 'JEX2'.
            MOVE IT_KONV-KBETR TO IT_ITEM-BAS_EXC_DUTY_RATE.
        IT_ITEM-BAS_EXC_DUTY_AMT = IT_ITEM-BAS_EXC_DUTY_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_JEX2 = V_JEX2 + IT_KONV-KWERT.
          WHEN 'JCES'.
            IT_ITEM-ECESS_AMT = IT_ITEM-ECESS_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_JCES = V_JCES + IT_KONV-KWERT.
          WHEN 'JIN2'.
            IT_ITEM-LST_VAT_AMT = IT_ITEM-LST_VAT_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_JIN2_JIN6 = V_JIN2_JIN6 + IT_KONV-KWERT.
          WHEN 'JIN6'.
            IT_ITEM-LST_VAT_AMT = IT_ITEM-LST_VAT_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_JIN2_JIN6 = V_JIN2_JIN6 + IT_KONV-KWERT.
          WHEN 'ZLSR'.
            IT_ITEM-SUBCHARGE_AMT = IT_ITEM-SUBCHARGE_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_ZLSR = V_ZLSR + IT_KONV-KWERT.
          WHEN 'JIN1'.
            MOVE IT_KONV-KBETR TO IT_ITEM-CST_RATE.
            IT_ITEM-CST_AMT = IT_ITEM-CST_AMT + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_JIN1 = V_JIN1 + IT_KONV-KWERT.
          WHEN OTHERS.
            IT_ITEM-OTHERS = IT_ITEM-OTHERS + IT_KONV-KWERT.
            V_VAL = V_VAL + IT_KONV-KWERT.
            V_OTHERS = V_OTHERS + IT_KONV-KWERT.
        ENDCASE.
      ENDLOOP.
      TOTAL = TOTAL + V_VAL.
      MOVE V_VAL TO IT_ITEM-V_VAL.
      MOVE TOTAL TO IT_ITEM-TOTAL.
    v_pr00 = v_pr00 + it_item-base_price.
      MODIFY IT_ITEM.
      CLEAR IT_ITEM.
    ENDFORM.                               " GET_PRICE

  • Sales text and  Purchase Order Text

    Hi,
    in what tables are stored Sales text and Purchase Order Text of the material master ?
    Best Regards

    Hi
    All long text is stored in STXH and STXL.
    Object is MATERIAL.
    Text-Id for basic data text is GRUN
    Text-Id for purchase order text is BEST
    For sales order text it is text object MVKE with text-id 0001
    Go to SE37 function builder. Enter READ_TEXT and do a single test ( F8 )
    Enter your parameters and execute. Example below.
    NAME is a comibation of materialnumber (00000000008000000)WITH leading zeros
    if numeric and sales org (1000) plus distribution channel (10)
    Import parameters - Value
    CLIENT - 010
    ID - 0001
    LANGUAGE - E
    NAME - 000000000008000000100010
    OBJECT - MVKE
    ARCHIVE_HANDLE - 0
    LOCAL_CAT
    Just for future reference with regards to getting text id's etc.
    eg: PO texts.
    --> Go into the material master PO text
    --> Double click into the required text.
    --> Click the "GO TO" menu option.
    --> click Header.
    and all the info you need is there.
    Thanks..

  • Sales Order and Purchase Order linkage in tables  for third party orders

    Hi all ,
    For third party process order s
    In which table can I find the Sales order and Purchase Order linkage .
    thanks
    ksr

    Hi Sridhar ,
    Refer Table EKKN for PO and SO Linkage.
    Table EBKN for PR and SO Linkage.
    Regards
    Ramesh Ch

  • Uploading sales text and Purchase order text for material master

    Hi,
      I have created, material master with LSMW  byt not updated SALES TEXT and Purchase order text with LSMW  now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text  when i have done the recording with SHDB  i have not found filed in recording.
    regards,
      zafar

    Hi,
    I have made the code in se38
    as below but still it is not working
    REPORT  ZTEST_TEXT.
      data: headerl like thead occurs 0 with header line.
      data itab3 like tline occurs 0 with header line.
    headerl-tdobject = 'MATERIAL'.
    headerl-tdname = '00000000000LSMW123'.          "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
    headerl-tdid  = 'BEST'.
    headerl-tdspras = 'E'.
    append headerl.
    move '*' to itab3-tdformat.
    move 'Testing PO text' to itab3-tdline.
    append itab3.
    call function 'SAVE_TEXT'
      exporting
        header                = headerl
      insert                = ' '
       savemode_direct       = ' '
      tables
        lines                 = itab3
    exceptions
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       others                = 5.
       IF SY-SUBRC = 0.
         CALL FUNCTION 'COMMIT_TEXT'
           EXPORTING
                OBJECT   = headerl-tdobject
                NAME     = headerl-tdname.
       ENDIF.
       break-point.
    regards,
    zafar

  • How to download material sales text and purchase order text information

    Here is situation:
    goto MM03 transaction,
    Take any material -- and select below views
    1. sales text
    2. purchase order text
    i have to write the download program with the sales text and purchasing text information of all the materials.
    could you pls tell me in which table I will get all the above sales text and purchase order text infrmation.
    I think it will store in standard text. I checked STXH table also for getting information text object, text id, text name, language, etc.
    If anybody knows .. please share.
    Thanks in advance.
    Regards
    Raghu

    Declare internal tables as follows: - An example
    TYPES: BEGIN OF TY_PO_LINES,
         INCLUDE STRUCTURE TLINE.
         END OF TY_PO_LINES,
         TY_PO_LINES_T TYPE STANDARD TABLE OF TY_PO_LINES.
    TYPES: BEGIN OF TY_PO_TEXT,
           TDOBJECT TYPE TDOBJECT
           TDNAME TYPE TDOBNAME,
           TDID TYPE TDID,
           SPRAS TYPE SPRAS,
         TDLINES TYPE TY_PO_LINES OCCURS 0,
         END OF TY_PO_TEXT,
         PO_TEXT_T TYPE STANDARD TABLE OF TY_PO_TEXT.
    DATA: PO_TEXT TYPE TY_PO_TEXT_T
    PO text:
    Looping at your internal table which consists of PO number,
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKKO "PO Header Text
    TDNAME = PO NUMBER
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKPO "PO line item text
    TDNAME = PO NUMBER
    ENDLOOP
    Looping at PO_TEXT
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
         ID = PO_TEXT-TDID
         LANGUAGE = PO_TEXT-TDSPRAS
         NAME = PO_TEXT-TDNAME
         OBJECT = PO_TEXT-TDOBJECT
      TABLES
         LINES = PO_TEXT-TDLINES
    ENDLOOP
    Follow the same above logic for material with suitable TDID you need to extract
    Hope this helps,
    SKJ

  • Relationship between a Sales Order and Purchase Order

    Dear All,
    Can we create a relationship between a Sales Order and Purchase Order.? If yes, then how can we do that.
    or how can we relate supply and demand..
    Please update...
    many thanks in advance...

    It's easy
    refere to my blog for complete Query between
    OM - Req and POs.
    http://eoracleapps.blogspot.com/2009/04/oracle-order-to-cash-queries.html

  • Link between sales order and purchase order

    plz explain the link between the sales order and purchase request

    Hi Javed,
    Their are 2 scenario for this.
    1) You create a sales order and the system automatically creates a PR and then you convert to PO.This is third party sales.In PO account assignment the sales order number is directly copied to the PR And PO.
    2) You create a PO wrt to SO .The goods received will be reserved for that SO. third party PO Vendor will directly deliver the goods to customer.The delivery address is copied from sales order.
    Techincally
    EKKN table you have sales order and Item fields (VBELN and POSNR)
    using these fields search for the deliveries in LIPS table
    EKKN-VBELN = LIPS-VGBEL and
    EKKN-POSNR = LIPS-VGPOS
    Edited by: Raj on Jun 19, 2008 6:58 PM

  • Difference Between Sales Org and Purchasing Org

    Hi,
    What is the difference between a sales organisation and purchasing organisation?
    Regards,
    Tracy

    Sales organization is responsible for selling the goods.
    Purchasing organization is responsible for purchasing the raw material or goods for the company.

  • How to add sales history and purchase history without affecting inventory.

    In order to help client migrating sales and purchase history into B1.
    I checked through the Business One objects reference file. I couldn't find any object that allow adding historical record into both Sales or Purchase history, via DIAPI.
    Do I have to always depend on the Sales Invoice object to add the document and let it affect the inventory level.

    No, you can't add historical data without affecting GL and Inventory.  In SAP B1 any invoice addition thru DI API will automatically behave like the regular B1 process and it will post to GL and inventory.
    I saw in the partner edge portal SAP B1 forum a post from an SAP employee that is working on developing a process where historical data will be able to be migrated without afecting inventory and GL.  But there is no ETA on when this will be available.
    Regards,
    WB

  • Link tables of Sales Order and Purchase Requisition

    Hi,
    thru which tables we can get the data of purchase requistion for a sales order.
    regards,
    balu

    Dear Balu,
    the fields VBEP-BANFN and VBEP-BNFPO are filled in the third-party process only. It means that there is 1:1 connection between the schedule line of the sales order and the purchase requisition. In the third-party process during saving the sales order the purchase requisition is created automatically and is linked to the order.
    If the fields are empty, it means, you have no third-party process and no 1:1 connection between the sales order and the purchase requisition. Probably the sales order created normal requirements, which generate purchase requisition(s) after MRP run. In this case you cannot see the purchase requisition from the sales order as there is no 1:1 connection. You have no chance to get the data from sales order to the purchase requisition.
    The only possibility which you (may be, it depends on the process) have, is to find sales order numbers from the purchase requisition: so to develop the process backwards. These data are stored in the database table EBKN: Purchase Requisition Account Assignment.
    Please use the following fields:
    EBKN-BANFN  - Purchase requisition number (key field)
    EBKN-BNFPO  - Item number of purchase requisition (key field)
    EBKN-LOEKZ  - Deletion indicator in purchasing document (key field, can be helpful)
    The corresponding sales orders are stored in:
    EBKN-VBELN  - Sales Document Number
    EBKN-VBELP  - Sales Document Item
    EBKN-VETEN  - Schedule line number
    I hope, this information will help you further and will solve your problem.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Linking Between Sales Order And Purchase ORder

    Dear Gurus,
      How to link the Sales Order Number and Purchase Order Number. I know the Sales Order Number and I need the tables from which I can know the Purchase Order Numbers for that Sales Order Number.
    Points will be awarded.
    Thanks,
    Ravi

    Hi,
    Goto Table Mseg-kdauf is sales order no.
    get mseg-ebeln is purchase order.
    Or u can do the following code.
    from sales order no VBELN get VBFA-VBELV.
    SELECT SINGLE vbeln  FROM  likp
             INTO l_delno
             WHERE  vbeln   = vbfa-vbelv.
    SELECT SINGLE ebeln
               INTO l_sono
               FROM ekbe
               WHERE  belnr = l_delno    
               AND   bewtp = 'L' .  
    L_DELNO IS PURCHASE ORDER.
    If it is helpfull pls reward it.
    Regards
    Srimanta

  • Learner question on sales order and purchase order

    dear SDN,
    I am a bit confuse about PO and Sales Order.
    My understanding is a Sales order is a contract from customer to sales organization.
    But a PO is also something like that am i right?
    I learnt that to create a Sales order you need the customer number and PO number.
    So, am i right to say that a Sales order is created by the sales organization after receiving the PO raised and issue by the customer?
    So they are basically the same thing but created by different parties?
    Is my understanding correct?
    Best regards
    MZ

    In Other words,
    Lets consider we as a vendor to our customer.
    our customer will place an order with us,  requiring some materials and for his reference within his company he will refer a number which is called as purchase order. ( this PO number will be a reference for our activities like payment request etc. with our customer).
    the Sales order is a copy of our internal tracking information, for the requirement raised by our customer. so with in our company we will refer this SO number while if we need to communicate something to the customer we will refer with his PO number as he may not be aware of our internal numbering system.
    This should not be confused with the Sales Order & the Purchase Order within our SAP system.
    Sales Order - Relation with the customer & company. (outgoing materials for a company normally)
    Purchase Order - Relation between vendor & company ( incoming materials for a company normally).
    Rgds
    Ilango

  • Delete or insert item in Sales Order and Purchase Order will update as well

    Hi,
    Is anyone got the program code that when i delete or insert item in Sales Order and the back to back Purchase Order will do the same action.
    Please help.
    Regards,
    Anna

    Hi,
    I guess u can try the following,
    Once the SO is updated, check with a SQL query if there are any target docs for that SO then, if there are any target docs u have to check for the item thats updated and then update ur PO using DI.
    Hope it helps,
    Vasu Natari.

Maybe you are looking for

  • Very Simple Question About Animated GIF Background

    Hi, Till now I didn't realise that I don't have to copy the whole picture into every frame, I can simply keep the "static" part as a background, and animate only the changing object (for example, some letters). This way the final file will be much sm

  • My "W" key is loose on my keyboard..what can I do about it?

    Does Apple help with this at the genius bar?

  • MDX Case Statement not working

    Hi have written the following MDX statement to create a new column calledl 'Aon Group' and group the Policy Broker Names into 2 values, either 'Aon' or 'All Other': WITH Member [Measures].[Aon Group] as Case when [Broker].[Policy Broker Name - Big 6]

  • Oracle business rule patterns : "There is at least one case"

    Hi, Rule Author pattern definition page has a drop down with values - 1. There is at least one case 2. There is no case What's the significance of this drop down ? When should I use these ? I found 2-3 lines from the user guide, but that doesn't seem

  • Code Page - IDOC error

    hi gurus I am loading data from CRQ to BWQ. I get the following error... For the logical destination CRQCLNT , you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be