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

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.

  • RG registers and PLA registers - Extraction Problem

    Hi,
    We have updated balances in table J_2IACCBAL for initial entries for RG registers and PLA registers but the same is not available for extraction in J2I5.
    Could you please advise what the problem is?
    Regards
    Santosh Hegde

    Hi Prasanna,
    We have updated the balance as on 31.03.2007 as per SAP Help. We tried extracting as on 31.03.2007 as well as 01.04.2007.
    Cut over data is as on 31.03.2007 and golive date is 01.04.07.
    Pls help
    Regards
    Santosh Hegde

  • 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

  • Urgent very urgent help regarding sales analysis and purchase analysis.

    Respective all experts,
    when i see a sales analysis and purchase analisys for a particular month or year i see only amount before discount and tax and that is not a actual net amount that includes tax amount also i want the total gross amount with including tax amount and net amount in sales and purchase analysis. And how will i enter more fields in form settings menu of sales analysis and purchase analysis.
    Awaiting all expert advise,
    Regards
    saisakshi.

    Hi,
    For system reports like sales analysis and purchase analysis, they are hardcoded. There is no room for you to add anything if you cannot find it from the report.
    If you need to customize it, you need to create your own report.
    Thanks,
    Gordon

  • 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.

  • 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

  • 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

Maybe you are looking for

  • Can I Merge two Apple IDs?

    Back around early 2004, I downloaded iTunes for Windows and soon bought my first iPod. I used an email address I had at that time which I'm really ready to retire. When the iPhone 3G came out, I bought that and added a mobile me account with a new @m

  • What are the following Fields meant to contain...?

    What info are the following Fields in iTunes meant to contain? 'Comments', 'Description', 'Category', 'Grouping'? Thanks.

  • How can i add servername to my report for all cataloged database

    1) Im using following sql statement to find the backup type,status and their timings and i would also like to see the databasename with it's corresonding servername. select DB_NAME,DB_KEY, input_type "Backup Object", output_device_type "Target Device

  • Connecting Macbook pro to PC monitor

    HI, can someone help/advise me if thie following is possible? I have an early 2011 MacBook Pro and wondered if I can connect it to an HP (HP w1097v) PC monitor? It has a VGA connection on the back. Many thanks

  • IDOC:Patner profile not available.

    Hi, I am new to IDOC.Can some one help me resolve teh following error mesage returned by the IDOC. "EDI: Patner Profile not aavailable".How should I go about configuring the same. In my requirement,an input file will be made available and sending and