Sales doc

Hi all,
in my billing doc report i need sale order no . i am picking AUBEL field from VBRP table .  but in my VBAP table i am having VBELN field  no starts with 4 seris.    but in AUBEL i am having 3 series no.
  My req is i need VBAP-VBELN in billing document report for this i am using (VBRP,VBRK).
regards,
saiteja

Hi Saiteja,
Actually VBRP-AUBEL should give you the correct sales order number. Alternatively, you can fetch it from VBFA (Sales document flow table) by giving invoice number in VBELN field and VBTYP_V as 'C'. It will give sales order number in VBELV field.
Thanks
Radhika

Similar Messages

  • Sales doc number?

    hi
    can i keep sales doc number in key fields or data fields in DSO?
    in data fields generally K.F and unique character also.
    in key fields we keep characters only.
    regards
    suneel.

    Hi Sunil,
    you can put the sales doc number (EBELN)
    in key filelds ,because which is the uniqe in the sales data.
    Regards
    Krishna Reddy

  • Incorrect requirements type in sales doc.

    HI,
    Due to incorrect requirements types of material the costs and sales volume are posted directly to sales doc instead of posting
    to WBS element.
    How can this be fixed (after cancellation of posting)?
    How can we identify already created u201Cincorrectu201D sales docs?
    Regards,
    Anup
    Edited by: anup12 on Jun 3, 2011 7:29 AM

    Hi !
    regarding your query, there may be various sales documents type which might be created during configuration.
    Some of these might not be required by end users and need to be blocked so that wrong document types are not chosen. so an indicator 'X' is placed againt these document types and these can not be used.
    There may be some documents wherein manual creation might not be allowed, and auto creation is desired. so againt these doc types-'A' is placed by which these doc types can not be created manually,
    Other sales doc types might not be blocked so that they can be used or created manually, hence kept blank against the indicator field.
    Plz reward point if useful.

  • How to make plant in shipping cond tab for line item in sales doc mandatory

    Hi
    How to make plant as mandatory for a sales document say quotation mandatory ? I went to SPRO-> Basic Fucntion - > log of incomplete terms ->  Define incomplete Groups -> B.selected sales -Item -> Created new procedure Z001 with fielda VBAP - WERKS ,selected screen name PDE2 and checked warning check box.
    When i goto Assign incompleteness procedures I donot have option to assign it sales document item level procedure i will only get sales doc header procedure to assign it to document type quotation.
    How to make plant as mandatory for each line item in quotation?
    Thanks,
    Vaishnavi

    Include: MV45AFZB
    Form  USEREXIT_CHECK_VBAP
    In our business scenario, we have used the same ,But  Plant is mandatory only for 1st line item-
    source code:
    IF vbak-vkorg = '1000' OR vbak-vkorg = '2000'.
        IF sy-tcode = 'VA31' OR
           sy-tcode = 'VA11' OR
           sy-tcode = 'VA21' OR
           sy-tcode = 'VA41' OR
           sy-tcode = 'VA01' .
          IF vbap-werks IS INITIAL AND
             vbap-posnr EQ '000010'.
            MESSAGE e398(00) WITH 'Please enter the plant for first line'.
          ENDIF.
        ENDIF.
      ENDIF.
    Help:
    Through this form exit we are making the "plant' field (for the ist  &*
    & line item ) mandatory for the sales document . This interns helps us &
    & to create the sales document numner according to the plant (Region)  &
    *& of the Plant
    Hope it clears. take assistance of your ABAPer.

  • Delete a line item from Sales Doc type RE

    Unable to delete a line item from a sales order linked to document type RE.  Get a long runtime - no specific error message.  Use the 'Stop Transaction' option to end the transaction.
    Have done thorough testing and can delete line items linked to all other sales document types in our system.
    Researched SPRO to see if there was a line item deletion option that was not created for sales doc type RE - but can find nothing.
    On a critical time line here - this was discovered during Hotpak installation testing which is scheduled to move to PRD June 22.  Question as to why we have not run across this issue before now??  - I don't think we have had an occasion to delete a returns line item before - but I want to have the option if available.
    Any help to resolve this issue would be appreciated.
    Regards
    Patsy

    Thanks for your response.
    After creating document type RE, execute VA02 transaction, select line item, select delete line item icon.  The system goes into runtime and just stays there.  No error message, no abap dump.  To escape the transaction, I have to select 'stop transaction'.
    I have tested all other document types we use in our system,  (including our customized transactions) SO, CR, DR, etc., and the system allows line item deletion.

  • How to use FM CRM_ORDER_READ using only object_id(sales doc)

    Hello Experts,
    I need to get the details for a given sales document in
    CRM(crmd_orderadm_h-object_id). I want to use FM CRM_ORDER_READ
    to get the details of a sales doc but my problem is where to put the object_id
    value. ANy simple example would be highly appreciated.
    Thanks a lot guys and take care!

    DATA:BEGIN OF i_order_h OCCURS 0.
            INCLUDE STRUCTURE crmd_orderadm_h.
    DATA:END OF i_order_h.
    SELECT *
        INTO CORRESPONDING FIELDS OF TABLE i_order_h
        FROM crmd_orderadm_h
       WHERE object_id    IN s_obj_id.
      DATA: i_header_guid   TYPE crmt_object_guid_tab ,
            i_et_partner    TYPE crmt_partner_external_wrkt,
            i_et_orderadm_i TYPE crmt_orderadm_i_wrkt,
            i_et_product_i  TYPE crmt_product_i_wrkt,
            i_et_pricing_i  TYPE crmt_pricing_i_wrkt,
            i_et_schedlin   TYPE crmt_schedlin_wrkt,
            i_et_sales      TYPE crmt_sales_wrkt.
    LOOP AT i_order_h.
    CLEAR i_header_guid.
        REFRESH  i_header_guid.
        APPEND i_order_h-guid TO i_header_guid.
        CLEAR: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        REFRESH: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        CALL FUNCTION 'CRM_ORDER_READ'
          EXPORTING
            it_header_guid = i_header_guid
          IMPORTING
            et_partner     = i_et_partner
            et_orderadm_i  = i_et_orderadm_i
            et_product_i   = i_et_product_i
            et_pricing_i   = i_et_pricing_i
            et_sales       = i_et_sales
            et_schedlin    = i_et_schedlin.
        IF sy-subrc = 0.
        ENDIF.
    ENDLOOP.
    Message was edited by:
            EastViking

  • Sales doc type

    Hi,
    If in a business having Plant Sale,Depot Sale & Export slaes then I have to create one sales doc  type-ZOR1 for all types of sales & one document catgory & one pricing procedure.,Please give me the solution.
    Thanks,
    Siku.

    Hi,
    Can you be more clear with your question?
    But in case if you are asking whether you can use 1 doc type and 1 pricing procedure for different kind of sales scenario then answer to that is you can still use 1 doc type for plant/depot./export sales but its not advisable esp for depot sales u should use STO (stock transport order) for which already seperate doc type has been provided by SAP.
    Also when coming tp pricing procedure its advisable to have seperate pricing procedures only for domestic/export sales as well as depot sales as the CTs would be varying as in terms of freight, taxes, surcharges etc (as applicable and as per country laws) and you need to take into consideration the excise implications ( or depot sales)
    Regards,
    Kant

  • Editing sales doc in R/3 that was created in CRM

    Hi all CRM Gurus
    I am in the process of cofiguring the CRM system to enable the creation of sales documents.
    All is working fine, I can create the sales doc is CRM, this them replicates through to R/3 without any errors, but I cant edit the sales doc in R/3 at all to change delivery or print order outputs
    My question is this:
    Can you edit a sales doc in R/3 that has been created in CRM??
    CRM Version 4.0
    kind regards
    Barry Dixon

    Hi Barry,
        You need to activate Scenario 'A' to change the documents in ECC, which replicated from CRM.
         For this you need to make below entries in ECC  & CRM table.
                    In ECC CRMPAROLTP table
                              PARNAME     CRM_SCENARIO
                              PARNAME2    INT_CHANGE_ORDER
                              PARNAME3    <SalesOrderType>
                              PARVAL1     A
                    In CRM SMOFPARSFA table
                               PARSFAKEY     R3A_SALES
                               PARNAME       INT_CHANGE_ORDER
                               PARNAME2      <SalesOrderType>
                               PARVAL1       A
        You need to activate Cross System Lock according to the note 888665. CSL activation is must, if you won't activate CSL order can be edited in both the systems at the same time. CSL ensures order can be opened in change mode in only one system at the same time.
    //Bhanu

  • Cannot find sales doc type data  in my  report on the multiprovider

    hai everone,
                      I'm doing report on the multiprovider which is connected to different ods's  i'm getting the data for all the fields except for 'sales doc type'.I could see the data for it in the ods on which the multiprovider is built but could not find the data in the report.Can any one suggest me how to get the data for sales doc type into my report.
    Urgent..

    yeah listcube is a TCODE to check the data in the cube. run the code and enter the same selections that you would be doing on a query to see and see if it returns any data. if it does, then the problem is with the identification. Most of the times create recommendations work like a charm. But just go into the chars and see if the IO in question has been checked against the ODS that aint returning any records.

  • Payment terms different between sales docs

    Hi Gurus.
    Why do I have payment terms different between sales doc and billing doc for the same customer?
    Detail: the sd and company code vision has the same value in customer master data (xd03, vd03).
    Thanks in advance!
    Renato

    Dear Renato
    Go to VA02, input the sale order and execute.  There click on Environment from top menu bar followed by changes.  You would find four options to choose.  Select
    -  Additional info and
    -  Time of Change
    This would give you who have changed the datas related to that sale order.
    thanks
    G. Lakshmipathi

  • How to know if an output condition record is ever used in sales docs

    All,
    I can see some output condition records in table B001. Additional detail of these records is in table NACH. But is there a way to know whether these condition records are determined in any sales docs?
    In individual sales documents, I can manually check what condition records are determined from the 'output determination analysis' screen. Here I can see the number of the condition record that the system has determined. But is there a table which links sales document and output condition record? (equivalent of KONV)
    Thanks & Regards,
    KC
    PS: Table NAST stores transaction data but only the output type and sales doc number is shown but it doesn't show the condition record (though it can be checked manually).

    Hi Krishna,
    Depending on the version of SAP you are using there is a transaction i think it is VA70 in ECC6 or in 4.6 there is a standard program for mass printing from a sales order.
    You can use this tcode/program the very same as VL71 for deliverys and enter in your output type and change the processing mode to 2 and execute from here you can see if it was ever printed
    Regards
    Paul

  • Copying Exchange rate from sales Doc to billing doc

    Hello,
    I have an issue with the update of the exchange rate in the billing document.
    In fact when i create a sales order then the delivery associated. then i change the exchange rate in the sales order.
    When i go to create the billing doc, the exchange rate is not updated in the billing document.
    I guess because it is not defined in the copy rule requirement from Sales doc to delivery, and from delivery to billing doc? can you please confirm if it is the case?
    Thanks
    Regards

    Hi
    First of all check weather exchange rate has been maintained between the currencies from which you are changing (Ex : INR to EUR). If the currency conversion has been maintained then check in VTFL copy control weather PricingExchange rate type field has been maintained or not. If not maintained then maintain the PricingExchange rate type feild as per your requirement and then do the complete cycle again.
    Regards
    Srinath

  • Release strategy for sales docs.

    dear all,
    we have a process in sales ,that we create scheduling agreement or sales order .It will have to be released by 4 different people with  different levels .Once released documents should not be modified by anyone except amendment procedure.
    Pls suggest as to how to achieve this ...
    thanks
    shankar

    This release procedure is not available in SAP for sales .
    you can create Z*tcodes for this, for 4 diff ppl or levels
    maintain the delivery block in sales order ( which will trigger directly from sales doc type)
    in create sales order - made this "display mode"- by using transaction variant.
    Now create
    Z*
    Tcode- ZLVL-1 - 
    a-Waiting for approval
    b-approved level-1   - in this level, he can access only these 2 fields either a or b.
    Tcode: ZLVL-2
    c-approved level-2
    similarly next 2 levels.
    d- approved level-3
    e-approved level-4
    Give tcode authorization only for respective levels-
    eg:level 1- ZLVL-1 n so on,
    Now in sales order , userexit, write a logic
    if the "delivery block " - approved Level-4 (E),
    then , allow to save the sales order
    or else trigger error mssg as " Not yet approved, cant save the document"-
    hope it helps, without development i dont think its possible.

  • How to create an invoice from multiple sales doc.

    Hi,
    how to create an invoice from multiple sales doc.
    thanx,
    sourav

    hello, friend.
    assuming that your settings in VTFA and VTFL allow, you can create 1 invoice for many sales orders or deliveries by using VF04.  choose all documents that apply and click "collective billing document". 
    you can also click on "simulation" if you want to test if the combination is possible and the system will give you a split analysis if this is not possible.
    regards.

  • Performence?? pulling billing # with sales doc #, taking too much time???

    Hi Experts,
    Am looing to pull vbrp-vbeln i.e. billing doc #, based on the VGBEL i.e. sales doc #
    i.e.
    select single * from vbrp into wa_vbrp
    where vgbel = wa_vbap-vbeln
    and posnr = wa_vbap-posnr.
    but, as there is no secondary index in vbrp for vgbel and there r tonns of recs in vbrp, its taking too much time?
    so, wht is the alternative that i can find billing doc # with my sales doc #?
    thanq

    Mr. Srinivas,
    Just a suggestion, if you need only the header details, then why not extract data from VBRK (header for billing doc) & VBAK (header for sales doc). These 2 tables contain only single line per billing or sales doc & hence the performance should be better.
    If my suggestion is not what you are looking for, then apologies for the same.
    Regards,
    Vivek
    Alternatively as Mr. Eric suggests, you can use VBFA
    VBFA-VBELN = VBRK-VBELN
    VBFA-VBELV = VBAK-VBELN
    Logic is VBFA-VBELN is the subsequent document & VBFA-VBELV is the preceding document.
    Hope it helps. (but be sure, the document created after sales order is billing document, there might be cases where there could be delivery documents after sales order & before billing document, so be careful)
    Edited by: Vivek on Jan 29, 2008 11:11 PM

  • Status are "open" in CRM but not same shown in replicated sales Doc.

    Dear Experts,
    Status are "open" in CRM but not same shown in replicated sales Doc ( R/3 ). please suggest with optimal solution.
    Regards,
    Sany

    Hi Sai,
    Thanks for your response, I am using PFAL transaction to transfer the employees from ECC to CRM. and I am using only one emplyee for execution, is there any other transactions to replicate employees.
    In ECC, after executing the PFAL transaction, getting successful transfer of IDoc message with green light.
    In CRM in WE02, it is showing yellow light for the same IDocs.
    but even with yellow light (Warning) some employees are successfully converting into BPs, but some employees are not converting.
    I could not trace the problem that, why it is happening. IDocs are reaching to CRM system, but some idocs are not converting into BP where as some IDocs are converting into BPs successfully.
    Please help me to resolve this issue.
    Your suggestions will be highly appreciated.
    Best regard
    Raghu ram

Maybe you are looking for

  • Mail no longer syncs, MobileMe was fine, iCloud won't let iPod Touch sign in

    4.2.1  , it's a 4 year old iPod Touch, mail synced using Mobile Me until recently. Now can't even get it to sign in in settings.

  • Put my library on an external drive

    Hello, I have laptop and desktop computers just like everyone. Can I use an external hard drive for both (laptop and desktop) libraries? That way I don't have any sync problems between these two machines. Thank you,

  • Getting process instance id from within java control

    Hi, here's a brief description of what i need to do. I have a group of processes which i start using one common interface (jpd control). the problem is, that when new process is created it needs to be added to a db table. So to have this done automat

  • Still frames from DVD's on player

    Is there anyway to capture stills from a DVD your are playing on the DVD player? Someone told me there was once, but I forget what he said to do. Thanks!

  • IPAD 2 Mail attachments

    When I am away from home/office with just my iPad2 I receive many short MPG files, just short videos of various work items. How do I get the video app to open the e.mail attachement so I can view it. If I open the email and click of the file then I j