Get Sales Document number from Project Defintion,WBS,N/w,N/w Activity

dear all,
  I am working in PS module ,
I need to get the sales document no from Project definition ,WBS element ,N/w and N/w activity .
plz let me know any FM or the table relatio to get the Sales document Number .
Note :
   In AFKO table i have a field called RMANR(sales Docu)  this field is always empty . Kindly
   give any other solution .
Regards,
  Vinoth.v

Hi Vinoth ,
Please refer the below link for Some of the SAP-PS Master and transaction tables.
[http://www.sapfans.com/sapfans/forum/logps/messages/1347.html]
Project and Sales Doc Number Relation
  AFKO  and PROJ linked with field PRONR.
WBS and Sales Doc Number relation
VBAK                           PS_PSP_PNR                     PRPS
VBAP                           PS_PSP_PNR                     PRPS
You can use the Program  RSPRTBEZ to get those relation between the tables. Above mentioned table details have been taken through the same.

Similar Messages

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • Getting Sales document data from VBKD to the Account Receivable Line items

    Hi Friends,
    We have to enhance 0FI_AR_4 With the Sales data from the VBKD Table where we can have Sales document Number.
    Can you please let me know how to make link with FI-AR  Accounting document with Sales documewnt. So that I can get data from the VBKD table.
    Thanks &Regards,
    Revathi

    Hi,
    Sales document(VBELN) is already avialable in 0FI_AR_4. Also see the link  http://help.sap.com/saphelp_tm80/helpdata/en/70/10e73a86e99c77e10000000a114084/content.htm.
    Regards,
    Prakash

  • Sales Document Number from billing document

    Dear all,
    How can i get the corresponding sales document number form a billing document number?
    I currently have data from VBRK and VBAK tables.
    so is it possible to get the corresponding sales order number for that billing doc no?
    Plz let me know.
    Regards
    Rahul.

    Dear Rahul
    If you want to see for a particular billing document the corresponding sale order reference, go to VF03, input the billing document and click on Document Flow
    If you want to see sale order references for multiple billing documents, go to SE16, input table VBFA, paste the billing document references in [Follow on doc] and C in [Prec doc categ] and execute.
    thanks
    G. Lakshmipathi

  • Sales Document Number field in ORDER05 IDoc

    Hi All,
    I am using a ORDERS05 message type for my inbound IDoc. I am using the copy of FM IDOC_INPUT_ORDERS. I am getting a Sales Document Number from BizTalk apart from other details. I want to feed this Sales Document Number in IDoc segment, so that the order is posted with the fed sales document number instead of system generating one.
    Please let me know in which segment and field, I should assign the Sales Document Number (received from biztalk) in the IDoc?
    Thanks in Advance,
    Bipen

    Pass external Order number in segment E1EDK02. Set the field QUALF as '066' (External Order Number) and pass the order number in field BELNR (See code lines 69 to 73 of include LVEDAF5S).  This assignment will work only if the Number range configuration for Order document type is External.

  • Sales document number based on pricing procedure ,sales area , customer pri

    Hi,
    where can i get saler document number based on pricing procedure ,sales area , customer pricing procedure and document pricing procedure.
    please tell me the table name.
    Thanks
    Edited by: pandu123 on Jun 16, 2011 8:22 PM

    I never heard of this requirement before, pulling sales document number based on pricing procedure based on customer pricing proc + document pricing procedure +sales area. These data are found in tables VBAK, T683,KNVV and TVAK. I dont think you can use ABAP query to join these table, check with an ABAP'er to develop a program for this requirement.
    Regards,

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

  • How to get master sales order number from delivery number

    Hi All,
    I need logic for getting master sales order number from available Delivery number.
    Note: There can be many SO's in diffrent levels.
    Finally i need to pick up master sales order no.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have a outbound delivery[VL03N] 'X' in my system .
    Then for getting sales order no i am writing below code:
      SELECT single vbelv vbeln
             from vbfa
             INTO (vbelv, vbeln)
             where vbeln   EQ p_vbeln AND
                   vbtyp_n EQ 'J'.
    Then vbelv i need to pick up master sales order no.
        SELECT vbelv vbeln
               from vbfa
               INTO TABLE i_so
               where vbeln   EQ l_vbelv AND
                     vbtyp_n EQ 'C'.
    If i write code as above it is giving four sales orders which one of them is master sales order no!
    Thanks,
    Deep.

  • Get FI Documet number from BKPF table using CO document number in COVP tabl

    Hi,
    In  datasource 0CO_OM_CCA_9 , we have written a code in CMOD to get the FI Document Number from CO document Number.
    The flow of code is:
    1) From the CO document number, get reference document number  (REFBNfield) from, COVP table
    2) Pass this REFBN in AWKEY(10) field of BKPF table.
    3) We have created new field in datasource named 'ZBELRE' which gets populated with BELNR field obtained from BKPF table.
    This ZBELNR is the FI Document number.
    But somehow wrong FI Document number is getting populated.
    After analyzing code, we found that the AWKEY which we passed in BKPF table is incomplete and the full AWKEY is
    COVP-REFBN+COVP-AWORG
    Is this condition always remains true in all the cases? Also, is the selection criterion which we have used to find the FI document number from BKPF table is sufficient?
    Our CO Consultant says that we should also pass AWTYP along with AWKEY in BKPF table.
    Please suggest a solution.
    Following is the code :
    ***********Datasource Modification for0CO_OM_CCA_9*******************
      WHEN '0CO_OM_CCA_9'." Data Source
        TYPES:BEGIN OF ty_bkpf,
        belnr TYPE bkpf-belnr,
        xblnr TYPE bkpf-xblnr,
        bktxt TYPE bkpf-bktxt,
        awkey TYPE bkpf-awkey,
        bukrs TYPE bkpf-bukrs,
        gjahr TYPE bkpf-gjahr,
        END OF ty_bkpf.
        TYPES : BEGIN OF ty_bseg1,
        lifnr TYPE bseg-lifnr,
        belnr TYPE bseg-belnr,
        bukrs TYPE bseg-bukrs,
        gjahr TYPE bseg-gjahr,
        END OF ty_bseg1.
        DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf,
        wa_bkpf TYPE ty_bkpf,
        it_bseg1 TYPE STANDARD TABLE OF ty_bseg1,
        wa_bseg1 TYPE ty_bseg1,
        l_s_icctrcsta1 TYPE icctrcsta1.
        "Extract structure for Datasoure 0co_om_cca_9.
        DATA: l_awkey TYPE bkpf-awkey.
        DATA: l_gjahr1 TYPE gjahr.
        DATA: len TYPE i,
        l_cnt TYPE i.
        l_cnt = 10.
        SELECT lifnr
        belnr
        bukrs
        gjahr
        FROM bseg
        INTO TABLE it_bseg1.
        DELETE ADJACENT DUPLICATES FROM it_bseg1 COMPARING belnr gjahr .
        SELECT belnr
        xblnr
        bktxt
        awkey
        bukrs
        gjahr
        FROM bkpf
        INTO TABLE it_bkpf.
        IF sy-subrc EQ 0.
          CLEAR: l_s_icctrcsta1,
          wa_bkpf,
          l_awkey,
          wa_bseg1.
          LOOP AT c_t_data INTO l_s_icctrcsta1.
            MOVE l_s_icctrcsta1-fiscper(4) TO l_gjahr1.
            READ TABLE it_bkpf INTO wa_bkpf WITH KEY awkey(10) =
            l_s_icctrcsta1-refbn
            gjahr = l_gjahr1.
            IF sy-subrc EQ 0.
              MOVE wa_bkpf-belnr TO l_s_icctrcsta1-zzbelnr.
              MOVE wa_bkpf-xblnr TO l_s_icctrcsta1-zzxblnr.
              MOVE wa_bkpf-bktxt TO l_s_icctrcsta1-zzbktxt.
              MODIFY c_t_data FROM l_s_icctrcsta1.
              READ TABLE it_bseg1 INTO wa_bseg1
              WITH KEY
              belnr = wa_bkpf-belnr
              bukrs = wa_bkpf-bukrs
              gjahr = wa_bkpf-gjahr.
              IF sy-subrc EQ 0.
                MOVE wa_bseg1-lifnr TO l_s_icctrcsta1-lifnr.
                MODIFY c_t_data FROM l_s_icctrcsta1.
                CLEAR: l_s_icctrcsta1,
                wa_bseg1,
                l_gjahr1.
              ENDIF.
            ENDIF.
            CLEAR: l_s_icctrcsta1.
          ENDLOOP.
        ENDIF.
    ***End of Datasource Modification for 0CO_OM_CCA_9*******************

    Hi,
    this forum is for the SAP BusinessObjects BI Solution Architecture. Please post your question into the corresponding product forum for SPA BW
    regards
    Ingo Hilgefort

  • Sales Document number in FBL5N

    Hi Friends,
    In FBL5N (customer line item report) there is a field "Sales Document" Field Name "VBEL2". But the accounting document which is generated in FBL5N for billing document from SD in not populating the sales order number in this field, this field is blank.
    this field is getting populated for down payments with relevant sales document number and not for invoice document.
    Our client wants the sales order number to be reported in customer line item report for their tracking.
    Can any one please suggest how this can be achieved.
    Thanks & Regards

    You can map Sales Order number to either 'Assignment' or 'Reference' fields in accounting document using Copy control function in SD. Please use transaction VTFA, this needs to be maintained for combinations of billing type and sales document type. Please ensure these fields are not currently used in your system for other information.
    Following fields can be mapped to 'Assignment' or 'Reference'.
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    If you currently use 'Assignment' or 'Reference' fields for other details, you can use user exit EXIT_SAPLV60B_008.
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Oct 4, 2010 11:52 AM

  • Sale document number range

    Dear all,
    I've a small issue with sales document number range. I create a range 01 from 1 to 4999999 by tcode VN01. But when the first sale document is created, the system gets the number 1000001 & assign to this sale doc. (Not 1 as usual). Do you know the reason why ?
    Thank you very much for your help,
    Regards,
    Tweety.

    Go to VOV8, select the sale document type and execute.  There ensure that this 01 is assigned to Number range int.assgt
    If not, maintain 01 and retry to create a sale order.
    thanks
    G. Lakshmipathi

  • Fm for status based on sales document number

    Hello Gurus,
    Can you please provide me the function module to get status( open, complete, inprocess) based on Sales document Number.
    Thanks

    Hi,
    Use FM BAPI_SALESORDER_GETSTATUS for getting the status of the Sales Order.
    Also:
    Check the given requirementcorrectly once again
    Because for sales order we don't use the field OBJNR (object no) to find the ststau
    Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
    and will read the STATUS of the Order
    So for sales order we don't have that field OBJNR
    if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
    Or use the table VBUK to find the Sales order status
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

Maybe you are looking for