Sales Document from VBAK ,VBAP and VEDA

Hi ,
I need to fetch the Sales Document from VBAK and VBAP and VEDA with the contract sign date for sales document line item .
Contract sign date is in selection screen as select options.
Please let me know how to fetch the sales Document per line item from these 3 tables considering that A sales document could have many line items and each can have a different sign date.
Thanks
Sachin

Hi,
The link between all the tables VBAK, VBAP and VEDA is VBELN i.e sales document number.
However, while fetching from VBAP and VEDA you would need to consider POSNR as well.
As your ABAPer to code the logic using 'for all entries' method.
Regards,
Amit
Edited by: Amit Iyer on Jun 23, 2011 12:28 PM

Similar Messages

  • Contract Sign Date from VBAK and VBAP and VEDA.

    Hi ,
    I need to fetch the Sales Document from VBAK and VBAP and VEDA with the contract sign date for sales document line item .
    Contract sign date is in selection screen as select options.
    Please let me know how to fetch the sales Document per line item from these 3 tables considering that A sales document could have many line items and each can have a different sign date.
    Thanks
    Sachin

    Hi,
    The link between all the tables VBAK, VBAP and VEDA is VBELN i.e sales document number.
    However, while fetching from VBAP and VEDA you would need to consider POSNR as well.
    As your ABAPer to code the logic using 'for all entries' method.
    Regards,
    Amit
    Edited by: Amit Iyer on Jun 23, 2011 12:28 PM

  • Replication of Business partner and the Sales document from CRM to R/3

    HI All ,
        I am completely new to this CRM technical , I need some technical document on how can I replicate BP and sales documents from CRM  to R/3 through CRM middleware .
    Please help me out in this regard .
    Regards
    Debasri Sarkar

    Hi Debasri
    It would be best if you try the Best Practices available on [CRM Best Practices|http://help.sap.com/content/bestpractices/crossindustry/bestp_crossindustry_crm.htm]
    Choose the CRM Version you are working on. On the next page that opens up, choose Technical Information-->Building blocks from LHS.
    And you can use the Best practice guide titled CRM Master and Transaction Data Replication there to know more about BP and transaction replication between CRM and ECC.
    Hope this would help You
    Regards
    Rekha Dadwal-Shet

  • Is there any VIEW or FM for pulling data from VBAK, VBAP?also for VBEP,VBBE

    Hi Experts,
    1) Instaed of using JOINS and FOR ALL ENTRIES, am looking to use any view or FM for pullinmg the data from, VBAK & VBAP,
    So, pls let me knwo that, Is there any VIEW or FM for pulling the data from the above  of tables
    2) Instaed of using JOINS and FOR ALL ENTRIES, am looking to use any view or FM for pullinmg the data from, VBEP & VBBE,
    So, pls let me knwo that, Is there any VIEW or FM for pulling the data from the above  of tables
    3) Am guessing FOR ALL ENTRIES is better than JOINS in PERFORMENCE perspective, Is am I correct?
    thanq
    Edited by: Srinivas on May 9, 2008 5:36 PM

    Hi Srinivas,
    You can use the view WB2_V_VBAK_VBAP2 for fetching data from VBAK and VBAP instead of using a JOIN. Note that, in the view, item data fields will have a I following the field name (POSNRI, MATNR_I are the item data fields from VBAP). The master data fields of VBAK are the same.
    As far as i know, there are no standard views provided by SAP for VBEP and VBBE. Not sure if FM exists either.
    While using FOR ALL ENTRIES clause make sure that you specify the entire primary key (EX. if selecting from VBAP specify VBELN and POSNR) as fields for selection or in the selection criteria. Its much better if you have the primary key in both. This is really important because without specifying the entire key and using FOR ALL ENTRIES will drastically bring down the performance. And also, If you are fetching not more than 100 or 200 entries using the clause it is fine, beyond that its same as using a select statement within LOOP...ENDLOOP.
    So, you have to decide whether to use FOR ALL ENTRIES or a JOIN while selecting data depending on the requirement. If you don't have the entire key either in fields for selection or selection criteria, then its better to use a JOIN or VIEW.
    The following is an example for using FOR ALL ENTRIES clause effectively.
             Select VBELN
                        POSNR
                        MATNR
                From VBAP
                  into Table T_VBAP
              For All Entries in T_DATA
              Where VBELN eq T_DATA-VBELN
                  And POSNR eq T_DATA-POSNR.
    I hope this helps, Please let me know if you need further assistance.

  • Unable to block creation of sales document from Quotation thru user status

    Dear Experts,
    I have maintained a status profile in my Quotation document through the use of user status. I have defined a status to forbid creation of sales document if the status has not yet been set to "Approved".
    However, even when the status is not yet "Approved", it still allows me to create subsequent sales document from this Quotation.
    Anything that I have missed here?

    Hi,
    It should not happen.
    Please check the Object types for which the status profile is created. It should be for either Sales Order header or Sales order Item.
    Make sure that the "create sales document" is "forbiddden" for the initial status only.
    Also please check Low- High numbers for each status.
    Hope this helps.
    Regards,
    Sharan

  • Hi i need the email of the apple store chicago michigan avenue.  is to ask for a copy of the sales receipt from an iPad and I do not find your mail from anywhere  thank you very much

    hi i need the email of the apple store chicago michigan avenue.
    is to ask for a copy of the sales receipt from an iPad and I do not find your mail from anywhere
    thank you very much
    my mail is [email protected]

    The one on North Michigan Av. ? You'll have to call, I couldn't find an email address.
    Apple Store
    North Michigan Avenue
    679 North Michigan Avenue
    Chicago, IL 60611
    (312) 529-9500

  • How  to Extract sales document from r/3 ?

    hi,
          How to extract sales data from SAP R/3 considering all fields of data in different tables?
    Thanks & regards,
    Gopi.

    Hi Gopi,
    It depends what data you need to extract but most of the data would be available in following tables :
    Sales
    VBAK - Header
    VBAP - Item
    VBPA - Sales Document Partner
    Shipment
    VTTK - Shipment Header
    VTTP - Shipment Item
    Delivery
    LIKP - Delivery Header
    LIPS - Delivery item
    Customer
    KNA1 - Customer Master
    KNB1 - Customer Master (Company Code)
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • Reading VBAK, VBAP and VBFA table during a process

    Hi friends,
    I have an execution DUMP in a Z report, so I would be very thankful if you can give me your expert opinion.
    I have a Z report which collects some information into an internal table. After that, I need to go over each record and read VABK, VBAP and VBFA tables and compute some quantities. It is not possible to do this in another way because I need to get some information first.
    Of course, each table is being read in the corresponding sequence (1st VBAK, then VBAP and then VBFA and at the end LIPS table) using the key or part of it. The problem is that if the user wants to execute the report online, it will be finish in a dump at this routine.
    My question is if it is possible to skip the dump getting VBAK and VBAP tables in memory and instead of reading directly, read them from memory. Notice that if I do this I need to put almost the entire table into memory. So, do you think that I will earn time or it will be the same or worse?
    Thanks in advance & kind regards,
    MMP.

    Hi everybody!
    We applied the note but it doesn't help. We realized that we have a problem with records quantity, so the key user is going to analyze which other parameter could be helpful.
    Thank everybody very much!
    Kind regards.

  • I am trying to get a document from my cloud and on my Mac it says I need an updated version of numbers but when I go to mac app stores it does not allow me to download the new version which I use on my ipad?

    I am trying to access a numbers document in mycloud and it keeps saying I need a newer version. I purchased the upgraded app for my ipad and now I can't seem to upgrade my computer so that I can get access. I went to the app store but it won't let me download the newer version onto my computer? What is the point of putting things in the cloud if I can't access them?
    Jan

    Numbers documents from iOS need Numbers 3.2 on a Mac to open. And Numbers 3.2 requires Mavericks. If you are using Mavericks you can get Numbers 3.2 from the Mac App Store. It will be free IF you have Numbers 2 (iWork '09) installed. Otherwise you must buy it.
    Your other option is to send the Numbers file as an Excel file via e-mail to yourself to open with an earlier version of Numbers.

  • RELATIONSHIP BETWEEN VBAK/VBAP AND V46R_HEAD TABLE

    Hi,
    can you please tell me that is there any relationship between VBAK and  V46R_HEAD TABLE or VBAP and V46R_HEAD TABLE table.
    where V46R_HEAD TABLE is a structure and i want to display sme fields of vbak and some of V46R_HEAD  and some of VBAP.
    I got the relation between VBAK and VBAP ie. the field VBELN. But i am not getting the relation with V46R_HEAD sturcture.
    Please help me to solve this problem.

    Hi,
    the field vbeln is present in V46R_HEAD also.
    Please check it!!  Please do a CTR+F and look for VBELN.
    Regards.

  • When I try to install abode - it will download but says i have to close firefox before it will install. also i try to open a word document from a website and it will not open - it will only download

    i install abode - it will download but not install and indicates i have to close firefox before it will download. Also, I try to open a word document from a website - it will download but not open.

    You need to close Firefox to install many plugins, including those from Adobe.
    As for the Word downloads, see the changing downloads action section of this link - https://support.mozilla.com/kb/Managing+file+types

  • Select from vbak, vbrk and vbrp

    Hi experts,
    In one of my programs i hve to select the data from tables <b>VBAK, VBRK</b> and <b>VBRP.</b>
    The requirement is:
    <b>parameters: p_matnr like vbrp-matnr,
                p_charg like vbrp-charg.
    select-options: audat for vbak-audat.</b>
    upon entering the values on selection-screen,
    i need to select <b>FKDAT, FKIMG</b> from tables VBRK and VBRP respectively.
    Please help me in writing the selection.
    Any help is appreciated.
    Thanks a lot.

    Hi,
    Hope this will give u some idea..
    select avbeln bfkdat into table itab from vbak as a inner join
                                  vbrk as b on
                                  avbeln = bvbeln where
                                  a~audat in s_audat.
    if not itab[] is initial.
    select fkimg into corresponding fields of table itab_final
                  from vbrp for all entries in itab
                  where vbeln = itab-vbeln and
                        matnr = p_matnr and
                        charg = p_charg.
    endif.
    Cheer,
    Vikram
    Pls reward fopr helpful replies!!

  • How to find a Sales document with Certain type and having a certain Matnr ?

    How can I find a sales document with a certain type and having a certain materail.
    is there any table to find that ??
    Thanks
    Venkat

    Hi Venkat,
    I found this table interesting. Pls. check with the table VBAP_VAPMA, it has the data of the header along with the items.
    Reward if it helps.
    Regards,
    Sreekanth

  • Sales Document from billing document

    Dear all,
    How can i get the corresponding sales document number form a billing document number?
    Plz let me know.
    Rahul.

    Please look at the below code.. It will give you the sales document no corresponding to the billing document no:
    DATA: wa_comwa TYPE vbco6,
          i_vbfa TYPE STANDARD TABLE OF vbfa INITIAL SIZE 0,
          wa_vbfa TYPE vbfa,
          l_vbeln TYPE vbeln.
    *billing document no
    l_vbeln = '90000049'.
    *Padding leading zeros
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = l_vbeln
      IMPORTING
        output = wa_comwa-vbeln.
    *Get the order info
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
      EXPORTING
        belegtyp      = 'M'                      "Billing docu
        comwa         = wa_comwa
      TABLES
        vbfa_tab      = i_vbfa
      EXCEPTIONS
        no_vbfa       = 1
        no_vbuk_found = 2
        OTHERS        = 3.
    IF sy-subrc = 0.
      READ TABLE i_vbfa INTO wa_vbfa
        WITH KEY vbtyp_n = 'J'                   "Shipment
        vbtyp_v = 'C'.                           "Order
      IF sy-subrc = 0.
      Display order
        WRITE wa_vbfa-vbelv.
      ENDIF.
    ENDIF.
    Please reward if useful
    -Tushar

  • Query with tables VEPVG, VBAK, VBAP AND KONV

    hi all,
    I have a requirement, that is Open Sale Orders which is having Special Discount. I am trying to write a Query, But KONV table is not coming into the joins. my execution plans is bellow
    VEPVG  -->  VBAK         vbak-knumv = konv-knumv and konv-kschl = Special Discount
                        VBAP
    Please explain me, how to design the query with conditions.
    Thanks & Regards,
    Srinivas

    Hi,
    Have you referred this help document.
    http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    Regards - Shree

Maybe you are looking for

  • HP Officejet Pro 8600 e

    Hello everyone, I just bought a HP Officejet Pro 8600 e-All-in-One today from Staples.  I set everything and it all went well, I can print wirelessly from my laptop, it will do a B/W copy and color copy, but whenever I try to send a picture from my i

  • How to create a podcast in Logic Pro X

    Hi there!  I do not currently own Logic Pro X but am considering purchasing it today.  I recently purchased a new MacBook Pro retina and have been DJing for the past 5 years.  In the past, I would create my mix as a WAV file, open up GarageBand, use

  • Start again

    WHen I use Imovie, Word, Photobooth and so on, the program shuts down and tells me to restart the program. Basically this is a problem with all the programs I have!! Can anyone help me solvinf this problem??? I usually just run one program at a time

  • Need the Latest EDK.jar file

    Hi, We need the latest edk.jar for customising the PT content server. The Plumtree 6.0 version we have does not have api for content server. (i.e com.plumtree.remote.prc is only available and com.plumtree.remote.prc.content is not available) If any l

  • How do I add word and pdf docs in an existing pdf doc?

    How do I add word and pdf docs in an existing pdf doc?