Sales order number on the AR Invoice PLD

I know I've seen a formatted search that enters the sales order number in a UDF so I can use it in the AR invoice PLD?  Could someone direct me in the right direction of give me the query to do this?
Thanks, Jeff

Hi,
Do this,
Create One UDF Header Level on A/R Invoice and Put FMS (or) Type direct SO No. (USER)
Try this FMS in UDF, Exactly Sales Order No. Will Come.
SELECT Distinct(T0.DocNum )
FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN ODLN T2 ON T2.DocEntry = T1.TrgetEntry
INNER JOIN DLN1 T3 on T3.DocEntry = T2.Docentry
INNER JOIN OINV T4 ON T4.DocEntry = T3.TrgetEntry
INNER JOIN INV1 T5 ON T5.DocEntry = T4.DocEntry
Where T0.DocNum = (Select $[$38.44.0] )
OR
T2.DocNum = (Select $[$38.44.0] )
Finally Put Remarks in Command Field. This is mendatory because you should give to use of Auto Refresh to UDF
->> Auto Refresh Remarks.
Put the Remarks in Command Field and Click Tap Button(TAP button is Auto Refresh) and will come*
the Sales Order Number in UDF
Else
You can put this Query in Remarks Field and Shift + F2, Sales Order No. will Come Exactly.
Regards,
Madhan.

Similar Messages

  • Sales Order Number in A/R Invoice PLD

    Dear All,
                 I copy a Sales Order to a Delivery Challan, i Copy This Delivery Challan to a A/ R Invoice.
                 I Need the Document number and their posting dates of both sales order and delivery documnet base number onto the A/R Invoice PLD.
                 I AM able to achieve the delivery number and date of Delivery documnet can anyone advice how to retireve the base sales order number on A/ R Invoice PLD

    Hi Aslam,
    Check this thread,
    Re: SO delivery date on A/R invoice
    OR
    Try to Create Query PLD. or Stored Procedure
    Regards,
    Madhan.

  • Sales order Number in Outgoing Excise Invoice PLD

    Hi Expert
    How Can I display Sales Order No in Outgoing Excise Invoice PLD?
    Regards
    Shekhawat

    Shekhawat,
    As Gardon say you requires UDF and one FMS on that so for that make one UDF and assign FMS Query as below on that FMS.
    after that SO num will move automatically document by document.
    SELECT $[ORDR.DocNum] AS 'DocNum'
    if your problem solved then close the thread.
    Regards,
    Bhavank

  • Where we can see Sale order Number in the project which is asigned to it.

    Hi,
    Where we can see Sale order Number in the project which is asigned to it.
    Regards,
    somiraghu

    Hi,
    Thank you for your reply.
    Here we can see in repot format.
    Mainly Iam looking for a feild type for making report.
    My expected report format is
    Production order     WBS Element         Sale Order
    12345                     PR-154534              8736444
    for the above report I can get details of production order and WBS element fron Prodction order table.But I also want Sale order number.
    Regards,
    somiraghu

  • How toset 2nd sales order number on the status application in Inbound Idocs

    Hi All,
    When processing inbound idocs in sales order we are splitting that idocs into two sales orders so for one sales order we are getting on Apllication with sales order number, But i want display second sales order number same as first one. can any one suggest me any function module for that....
    Regards,
    Sudhakar Reddy.A

    Hi ,
    Thanks for the relies i am writing the code in same FM (EXIT_SAPLVEDA_005) include (ZXVEDU07). this is for error message i wrote .
    Data : wa_e1ed19_E TYPE ty_e1edp19,
           wa_status1 type BDIDOCSTAT.
    if DIDOC_STATUS-status = '51' and DIDOC_STATUS-msgty = 'E' and DIDOC_STATUS-msgno = '382'.
    read table IT_E1EDP19 into wa_e1ed19_E with key idtnr = DIDOC_STATUS-msgv1.
    if sy-subrc = 0.
    wa_status1-docnum   = DIDOC_STATUS-docnum.
    wa_status1-STATUS   = DIDOC_STATUS-STATUS.
    wa_status1-MSGTY    = DIDOC_STATUS-MSGTY.
    wa_status1-MSGV1    = wa_e1ed19_E-idtnr.
    wa_status1-MSGV2   = wa_e1ed19_E-posnr.
    append wa_status1 to DIDOC_STATUS.
    clear wa_status1.
    endif.
    endif.
    Regards,
    Sudhakar Reddy .A

  • Sales order number in customer invoice

    Hello,
    I have an FI custome invoice created automatically from SD module.
    Is it possible to enter the sales order number in the fI invoice?
    In the FIinvoice there is the field KDAUF (Sales order number) how is possible to popultate automatically this field?
    Thanks a lot,
    Cheers,
    Emanuela

    In standard this is not possible.
    You have to develop a zee transaction which should consider Tables VBFA and VBRK or VBRP.  In this zee transaction, automatically you can populate sale order reference and billing documents with the above table combinations so that the end user can see against one sale order, how many billing documents have generated in a day.  There should be one more editable field  where the end user has to key in the value against the sale order so that the same has to be updated in VBRP table.
    This is possible only if the accounting document has not been generated.
    thanks
    G. Lakshmipathi

  • Need IDOC and segment for mappping the sales order number

    Hi,
    we need the IDOC name and segment for mapping the sales order number created by oracle in sap for transaction VA01.
    Whether the sales order number created by Oracle can be used to create the sales order in sap using the idoc ACC_SALES_ORDER01?
    . If we can do,then what is the segment and field for the sales order number in the idoc ?
    Please reply asap it's very urgent
    Thanks
    Edited by: suresh kumar nandhagopal on May 16, 2008 12:07 PM

    Hi,
    IDOC for sales order is ORDERS05. Segment E1EDKA1, for field go to SE11 and enter E1EDKA1 to find field for sales order.
    Cheers.
    ...Reward if useful.

  • How to pull the Sale order number(sales document) to Accounting document

    Hi Gurus,
    How to pull the sale order number to the accounting document.
    Is any configuration needed to this.
    When i run the FBL5N Repoprt ,Sale order number (Sales document) is not getting updated to accounting document.It is diplaying as blank field.
    Thanks you.

    Hi Shivaji,
    In order to display the Sales document in the customer line item report, you need to add it as a special field thorugh customizing settings.
    Path - SPRO - FA-GL Accounting - GL Accounts - Line Items - Define special fields for finding and sorting data and in that select the table BSEG-and field VBEL2 (Sales document) and save/
    This will work. hope this helsp
    regards,
    radhika

  • While filling up the set uptables ran twice for the same sales order number

    Hi all,
    I ran the set up tables for a sales order number in the morning and then ran again in the evening by mistake so when i see in the rsa3 i can see 2 sales order number.
    If i load the same in the sales order header and item ods, will there be any duplicates from ecc to bi?
    Thanks
    Pooja

    Hello,
    If you load your ODS in overwrite mode, there should not be any problem.
    Regards,
    Fred

  • Reference field with sales order number in accounting document (FB03)

    Hello!
    Does anybody know if it is possible to display in FB03 in accounting document a refference field with sales order number?
    Can parameter AUN be used for this purpose? If so, how can it be set up?
    Thank you in advance for every help,
    Sylwia.

    You can config the rule of copy control for billing by tcode VTFL. for the reference number field you can choose B-sales order number. then when you invoice, the field reference number in the invoice header will be filled with the SO No. And this number will be displayed in FB03.
    hope it will be helpful to you.

  • SD-How to find table link of special delivery and sales order number?

    Hi Experts,
    I have a requirement as below.
    In LIPS table (SD document: Delivery: Item data), in this table has one kind data.
    One record has maintianed 2 fields PSPNR(Project definition (internal)) and PS_PSP_PNR(Work Breakdown Structure Element (WBS Element)).
    How to find sales order number of the above record? Could you tell me which table link the delivery item data and sales order number?
    Thanks a lot,
    Frank

    hi,
    check this.
    [https://forums.sdn.sap.com/click.jspa?searchID=20150250&messageID=3784069]

  • Find Sales order number from IDOC number

    I have a bunch of SO idocs, in status 64. They are then posted and Sales orders are created.
    How can I programatically find the Sales order Number from the Sales Order idoc number once it is in status 53 (other than going to EDIDS and checking if status = '53' and grabbing the 'STAPA2' field there ).

    Look at table EDIDS for sales order idocs and you can see SO number in any of STAPA1/2/3/4 variable for specific message id and message number.

  • Error using BAPI_BUSPROCESSND_CREATEMULTI, how to get sales order number

    Hi all, i am using the BAPI BAPI_BUSPROCESSND_CREATEMULTI to create a sales order of type ZWEB in CRM. I am using HEADER,  INPUT_FIELDS ,  ITEM ,  CREATED_PROCESS and  RETURN
    tables. In the CREATED_PROCESS i am getting the GUID but no value for object id. and in return table i find the error mesages as "no status object available for unknown object", "A log has been generated for single document", "no status object availabe for unknown object".
    what mistake i am doing? i want to create a sales order in SAP CRM and get the sales order number as the output. am i using correct bapi. many people suggested of using bapi BAPI_BUSPROCESSND_SAVE....i dont know how to use it and what values i should pass to the objects_to_save paramter of this bapi.
    here is my code please help me
    ***TABLES
    DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
    DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
    DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
    ***WORK AREA
    DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
    DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
    DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
    DATA: IT_EV_GUID_32 TYPE GUID_32.
    DATA: IT_EV_GUID_32_1 TYPE GUID_32.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32.
    WA_HEADER-GUID                      =  IT_EV_GUID_32.
    WA_HEADER-PROCESS_TYPE    =  'ZWEB'.
    WA_HEADER-DESCRIPTION        =  'WEB ORDER'.
    WA_HEADER-CREATED_BY        =  'SAPUSER
    APPEND WA_HEADER TO IT_HEADER.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_H'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'PROCESS_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'DESCRIPTION'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'CREATED_BY'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: CREATED_PROCESS.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32_1.
    WA_ITEM-GUID              =  IT_EV_GUID_32_1.
    WA_ITEM-NUMBER_INT        =  '10'.
    WA_ITEM-ORDERED_PROD      =  '90000000'.
    WA_ITEM-ITM_TYPE          =  'ZTAN'.
    WA_ITEM-MODE              =  'A'.
    APPEND WA_ITEM TO IT_ITEM.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32_1.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_I'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'NUMBER_INT'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ORDERED_PROD'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ITM_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: created_process.
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
    TABLES
      HEADER = IT_HEADER
      INPUT_FIELDS = IT_input_fields_fill
      ITEM = IT_ITEM
      CREATED_PROCESS = CREATED_PROCESS
      RETURN = RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT = 'X'
      IMPORTING
        RETURN = RETURN1.
    Edited by: jessica sam on Dec 11, 2008 5:23 AM

    Hi Jessica,
                    I am not able map billing plan details for BAPI_BUSPROCESSND_CREATEMULTI.
    If u done alreay please guide or send program for that.I will be grateful for you.
    Regards,
    Dilip

  • Automatic Sales Order Number in Production Order

    Good Afternoon Experts,
    I am currently testing MRP Wizard and upon creating order recommendation, Sales Order Number field in the purchase order is blank.  Is there a way wherein system can automatically put the Sales Order Number where the said recommendation came from?  This will be of great help for users to know the origin of siad recommendation.
    Thanks and hope to hear from you soon.
    Sandra
    Edited by: Sandra Callanta on May 29, 2009 9:53 AM

    Remarks in Purchase Order will display sales order no. / activate Base Ref. field in purchase order.

  • Customer Sales Order number to display in Purchase Order idoc

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

Maybe you are looking for

  • Dunning Key and minimum amount per dunning level

    Dear Friends, Can any one please explain the dunnig key functions? While defining the minimum amout their is two terms one is open item and another one is total amount. The definintion of total amount is all the items in an account means the items wh

  • Reg Vendor Creation Standard Service

    Hi, I am trying to work on a scenario involving Enterprise Services. Can some one please confirm on the Vendor Creation service from ES workplace. I browsed and could find this service. SupplierERPCreateRequest_In. But this service is Asynchronous. M

  • Uniqueness plug-in not working

    Hi, I am having a problem getting the uniqueness plug-in to work for additional attributes. Following instructions in the manual, the following entries are placed in the dse.ldif file, and the server restarted. However, once I restart the server the

  • Warranty in another country

    Hey guys, I bought an Apple-product a year ago in England, but I live in Denmark. Now the screen is starting to show some "yellowing" in the upper right screen. I called Apple who said they couldn't do anything, as I need to go to the reseller in Eng

  • Lion: secondary click fail on macbook pro

    I just installed Lion on my MacBook Pro 2.5GHz Intel Core 2 Duo with 4GB ram.  I have lost the right click function on my track pad.  In System Prefs/TrackPad, I have clicked the radio button for Secondary Click, but it won't stay on. Any ideas?