Derivation of batch number in Profitability Analysis for Sales document

Hi Gurus
We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
scenario SA created with multiple line items
Batch number can be seen in Delivery document number   
Thanks in advance

We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
scenario
SO created with no batch number
In the Delivery split batch into two seperate lines with batch numbers in it
PA post two seperate lines however unbale to map batch numbers
Btach number exist in tables MSEG, LIPS and VBRP
Unfortunately these postings happen after updating PA so not available for derivation in PA
Thanks in advance

Similar Messages

  • Updating Batch Number while delivery creation from sales document

    Hi Experts,
         I have to write code inside user exit MV50AFZZ which updates batch number during delivery creation. Suppose I have a sales having more than one line items. Each line item have different material numbers, and one material number may have more than 1 batch number. And all these batch numbers have to be updated for their corresponding material numbers. Batch  number corresponds to LIPS-CHARG. So how we can maintain values for this field more than once for a particular material number?

    Hi Pankaj,
    Were you able to update the Batch Number?
    What is the function Module that you used? and where exactly did you code in the logic?
    Thanks,
    RV

  • Batch Number Linking to Item in any document

    Dear All,
    I am struggling to find the actual link to Batch number allocation table ( OBTN) to actual document detail tables ( ORIN/RIN1) of particular Item.
    I do not find any references in OBTN which belongs to the document detail table. I have noticed the same in Credit Memo, Delivery, Invoice documents if the item has serial numbers. GUI is allowing user to select Item serial numbers, which is considering as DistNumber, but how the entries in OBTN relates to document detail table, could not figure out.
    I appreciate your help and need your help on emergency basis...
    Regards,
    K Sakthivel

    Hi K Sakthivel........
    Please try this code.....
    Select * from ORIN T0 inner join RIN1 T1 on T0.DocEntry=T1.DocEntry
    left outer join IBT1 I1 on T1.ItemCode=I1.ItemCode   and (T1.DocEntry=I1.BaseEntry and T1.ObjType=I1.BaseType)
    left outer join OBTN T4 on T4.ItemCode=I1.ItemCode and I1.BatchNum=T4.DistNumber
    Regards,
    Rahul

  • Maintain number range interval "01" for inventory documents

    hi,
    when i am creating a physical inventory creating document t.code LI01 i got this eror:
    Maintain number range interval "01" for inventory documents.where i have to maintain please reply me.
    naveen

    hi,
    spro->log.execution>warehouse mgmt->activities->physical inventory---->maintain number ranges.
    Regards,
    velu

  • Number range for sales document type

    Hi,
    I am having 1 client under that 5 company codes, ade according to that 5 plants & 5 sales organization.
    so for one comapany code including all there are 15 sales document types same for other also
    my question is
    How can I assign number range for all that?
    If i am going to maintain seperate document type it goes to 75
    which userexit will help me out for this?
    without userexit what is the otherway?
    regards,
    Rahul

    Not only at order level, you will have to use exits at delivery and billing document level also.
    For sales documents:
    Exit USEREXIT_NUMBER_RANGE in MV45AFZZ
    For delivery documents:
    Exit USEREXIT_NUMBER_RANGE in MV50AFZ1
    For billing documents:
    Exit USEREXIT_NUMBER_RANGE in RV60AFZZ
    You need to give tables for maintaining numbers for sales, delivery and billing documents. In the exit a select query can be written to fetch the data based on the parameters like sale orgainzation, company code etc.
    Regards,
    GSL.

  • External number range for Sales Document

    hi,
        I have a requirement to generate external number range for sales document. I tried this user exit (MV45AFZZ) to generate external number.
    FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
    Endform.
    between these form and enform i written my logic and passing to US_RANGE_INTERN. But can one suggest where to write to generate external number range.
    Can any one help me out.
    Thanks and regards,
    Vijay.

    Hi
    Here you can assign a different number range for your sales order.
    The number range is linked to the order type (field VBAK-AUART), this link is done in customizing.
    It usually uses this routine if it can't assign the range in customzing because (for example) for different sales area it need have different number ranges for the same order type.
    So you should create an external range by trx SNRO and then assign the number before entering in the main screen of va01 or saving the document.
    When you need to assign the number depends on how you want to manage your range.
    If you assign the number in entering you has to make sure to not assign the same number document to severals order to be created in the same time by several useers.
    Max

  • Results analysis for sales orders- actual costs/ revenues - (kka3-kkak)

    Hi, i have a problem when I execute the individual results analysis for sales orders (kka3) I can see actual revenues and actual costs, however when I execute the collective processing (kkak) for the results analysis I don´t see these (actual revenues and costs). Is it normal? How can I see these in the collective processing?

    Could be one of these possibilities:
    1) Controlling Area set is wrong
    2) You're input parameters are insufficient to get that sales order. Check Order Type etc you input in the main screen
    3) The master data is wrong which is not allowing the link to the Sales Order. You would have to check each field thoroughly.
    You will have to probably do a lot of checks before you resolve this. This isn't normal btw....you should see all Sales Orders
    Assign Points if useful....

  • Results Analysis for Sales Orders

    Hi
    When i am calculting Results Analysis for Sales Orders as a part of Month End Closing Activities there are some errors for few orders...
    Msg Type: E
    AppAr: KJ
    MsgNo: 216
    Message Text: Planned Cost for Valuation are 0. Please Check the Object.
    Can any one tell me what might be the error..
    Thanks in Advance..
    Sivaram

    Hi,
    The error is offen caused by one or possible more than one of following statements:
    - the delivery block of the order is set
    - the billing block is set
    - the schedule line ( confirmed quantity ) is missing
    - the position has been cancelled
    - price condition is missing
    In case no one of the mentioned options wouldn''t help, set the position status to technically completed, if the position is processed as well ( delivery, invoice, etc. ).
    We often face this kind of issue
    Good luck
    Marian

  • Custom master data for Sales Document Number

    Is it possible to create master data for "sales document number" as a custom field and/or table in R/3?  We have a need to record the "end user" customer of an order but this data may be updated a long time after the order and sale is complete.  IT seems that loading to BW/BI may be simpler if this is treated as document attributes rather than transactional data since no delta will be trigger by changes to this field.  Does anyone have experience with this approach?

    Hi,
    it is possible to create attributes for this InfoObject. Add the Attributes you need in BW. You can use the attributes even if the sales doc is line item dimension of your cube.
    On Sourcesystem side you have to create a generic extractor in SBIW. I think a table view on VBAK or VBAP may fullfill your needs. Of course the tables are not the smallest ones but maybe u can use the timestamp to implement a generic delta. Check whether the timestamp is set when the 'end user' is set. Not every change in the sales document leads to an entry in the delta queue of logistic, but the timestamp should be set.
    After that replicate the datasource to BI and connect it to the attributes of 0SALES_DOC
    I had a similar enhancement at one customer reading the actual transport routes to the sales documents and it worked fine.
    Hope that helps
    Christoph Vortkamp

  • Document flow for sales document

    It is possible NOT update the document flow when i create sales document with reference  to onther sales document?
    Thanks.

    When you don't want to have a relationship between to doc and want use only for reference then you can use - Dynamic Product Proposal or simply, user can refer the items from existing doc (to do this in sales order overview screen, press CRTL+F11, explore the option-easy without config )
    A product proposal is a list of products for a specific customer that is automatically proposed during sales document processing. You can decide for yourself which materials should be displayed as product proposals in the sales document. You can also determine the sequence in which the materials appear in the product proposal.
    During sales document processing, the system displays a product proposal in the item overview according to the customer and the business transaction. It displays the material number, material description, and historical order quantites in the sales unit last used. To use a material again, you just have to copy it. The system does not run the standard checks (pricing, availability, incompletion, material determination, free goods determination and so on) until you have entered the order quantities.
    The product proposal is both an entry help and an aid to sales support and promotions. It is particularly useful in Telesales, where the employee automatically receives a display of all the materials that are of interest to a particular customer. This helps them to provide appropriate advice to the customer quickly and easily. The sales document history enables you to analyse the purchasing behaviour of a customer and recognize early on if it changes, for instance, when the customer suddenly stops ordering a product.
    The product proposal differs to cross-selling in that it is dependent on the customer and sales area, and is displayed in the sales document as soon as you have entered a customer. Cross-selling, on the other hand, is triggered by a material. In other words, the system proposes cross-selling materials according to the material or a characteristic of the material you have entered.
    You can determine the product proposal from different data sources:
    -Order history
    -Listed materials
    -Excluded materials
    -Item proposal
    -Customer-material info records
    -Customer-specific data sources
    You can combine materials from these data sources to create a product proposal. The system then accesses the data sources either online or in the background.
    To define a product proposal for sales document processing, you must carry out the following activities in Customizing:
    -Define customer procedure for product proposal
    -Define document procedure for product proposal
    -Assign document procedure for product proposal to order types
    -Maintain table of origin for product proposal
    -Define product proposal procedure and determine access sequences
    -Maintain procedure determination (in background) for product proposal
    -Maintain procedure determination (online) for product proposal
    The product proposal procedure determines how the system displays the product proposal in the sales document. For instance, if the system has accessed the order history, it determines how many columns should be displayed in the sales document, in which period intervals thehistoric order quantities should be displayed (for instance, day, week, or month), and most importantly, the sequence in which the system should access the data sources (for example, order history, listing, exclusion).
    The product proposal procedure depends on the:
    - Customer determination procedure
    The customer procedure determines which product proposal procedure the system automatically uses when you create a sales document for a particular customer. It is specified in the customer master record per sales area.
    - Document determination procedure
    The document procedure determines which product proposal procedure the system automatically uses for a certain document type. The document procedure is stored as a key in the header for the sales document type.
    If you use online processing, the product proposal procedure is determined according to the customer and document determination procedures.
    If you use background processing, the product proposal procedure is determined according to the sales area in the customer master and the customer determination procedure. It does not use the document determination procedure because the document type is not recognized in background processing
    Hope this can assist.
    Thanks & Regards
    JP

  • Function Module to Generate Outbound IDOC for Sales Documents

    Hello Experts,
    Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents.  Some of the fm's I have come across are the following:
    IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
    IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
    Points will be given for any help provided.
    Thanks in advance.

    Hi Nagaraj,
    I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order.  For everyone's reference here is the code:
    form process_data.
      DATA v_idoc       TYPE edidc-docnum.
      DATA i_edidd      TYPE TABLE OF edidd.
      DATA wa_idoc_ctrl TYPE edidc.
      LOOP AT i_nast INTO wa_nast.
        CLEAR i_msgs[].
        CALL FUNCTION 'WFMC_PROTOCOL_GET'
          EXPORTING
            cps_nast        = wa_nast
          tables
            messages        = i_msgs
         EXCEPTIONS
           NOT_FOUND       = 1
           OTHERS          = 2.
        LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
    *--- Check first if there is an IDOC
          IF wa_msgs-msgv1 IS INITIAL.
            CONTINUE.
          ENDIF.
          v_idoc = wa_msgs-msgv1.
          CLEAR i_edidd[].
          CLEAR wa_idoc_ctrl.
          CALL FUNCTION 'IDOC_READ_COMPLETELY'
            EXPORTING
              document_number                = v_idoc
            IMPORTING
              IDOC_CONTROL                   = wa_idoc_ctrl
    *         NUMBER_OF_DATA_RECORDS         =
    *         NUMBER_OF_STATUS_RECORDS       =
            TABLES
    *         INT_EDIDS                      =
              INT_EDIDD                      = i_edidd
            EXCEPTIONS
    *         DOCUMENT_NOT_EXIST             = 1
    *         DOCUMENT_NUMBER_INVALID        = 2
              OTHERS                         = 3.
          CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
            EXPORTING
              object                              = wa_nast
              control_record_in                   = wa_idoc_ctrl
    *       IMPORTING
    *         OBJECT_TYPE                         =
    *         CONTROL_RECORD_OUT                  =
            tables
              int_edidd                           = i_edidd
    *       EXCEPTIONS
    *         ERROR_MESSAGE_RECEIVED              = 1
    *         DATA_NOT_RELEVANT_FOR_SENDING       = 2
    *         OTHERS                              = 3
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          COMMIT WORK.
        ENDLOOP.
      ENDLOOP.

  • Post order processing for sales document is not yet complete

    hi,
    sap gurus,
    i am facing the error while saving the sales order and this ticket is unique and it is saying that
    "post order processing for sales document is not yet complete".
    please help me in this regard.
    and it is blocking the order for further processing.
    regards,
    balajit

    I dont think this is a standard error message.  Some exit is applied for sale order to meet some requirements.  You need to check with your ABAPer.
    In fact, you can conclude yourself based on the error message number.  If it starts with Z, then the above holds good.
    thanks
    G. Lakshmipathi

  • Add fields in Locator result  for Sales Document in GUI (anyone?)

    Dear all,
    I try to find information on how we can customize the locator's result column (especially for Sales document)
    in GUI mode. I know we can Change Layout to choose other available field column to be displayed in the
    locator result. How to add more fields so we can have more fields to choose when we change the layout?
    I searched the SDN CRM forum but no exact answer for this (missed it?)
    In fact, there is a bug on the locator search result when I set field Employee Responsible to be displayed
    on the search result, the system is showing other Partner number instead.
    If you have experienced in add fields on the Change Layout, please kindly share it.
    Appreciate your help (with points)
    Cheers,
    Gun.

    It is GENIL BOL concept and now using WebUI Search.

  • What is the use of Release Strategy for Sales Document

    Hi,
    Can i know what is the use of Release Strategy for Sales Document? Difference between lowest level and Highest level.

    Hi,
    Can i know what is the use of Release Strategy for Sales Document? Difference between lowest level and Highest level.
    Lowest Status No: Sale Document can have several statuses at the same time. However, only one of the statuses may have a status number. If another status with a status number is activated; the old status with status number is deactivated. This is only valid under certain conditions. The system makes a note of the status with the highest status number that has been reached up to the present. The "lowest number" of this status number determines which status number a new status must have.
    Highest Status No: Sales Document can have several statuses at the same time. However, only one of the statuses may have a status number. If another status with a status number is activated, the old status with a status number is deactivated, provided the new status number does not exceed the 'highest number' defined for the old status number
    If you want more clarity try to check below link
    http://www.sapfunctional.com/SD/ReleaseStrategy/Index.htm
    Regards,
    Prasanna

  • REMOVED " V/032 Insufficient authorization for sales document"

    We are having serious issues with the multiple credit card authorization at the time of releasing the billing document to accounting. Everything is with fine with a single payment card. But as soon we split the order value into two payment card and try to release it to accounting, It gives me this error " Insufficient authorization for sales document XXXX". It was working fine sometime back in July and i had tested it many times, i have no clue what happened in the system or what triggered it. I have checked all the config and settings, everything is fine, and i am unable to understand what is causing this issue. Any help from anywhere would be greatly appreciated....
    thanks all in advance for their input..
    Message was edited by:
            Yathish K

    Hi,
    Please <b>read rules of engagement</b> before posting.
    Step 1: Finding An Answer
    Rule number one: Try to find the answer first. There are tons of resources out there, show that you have tried to find the answer. A question that shows that the person is willing to try and help themselves is more likely to be answered than one which simply demands information. Tell us what you have done to try and solve the problem yourself - often we can learn from that too!
    Search the forums, the articles, the blog posts and the Frequently Asked Questions (FAQ) in the Wiki for your topic.
    Step 2: Asking Your Question
    Once you have verified that no resources are available for solving your problem, ask your question. Do the following:
    - Use a Good Subject Line
    The subject header is your golden opportunity to attract qualified experts' attention in around 50 characters or less. Don't waste it on babble like "Workflow question". We all have busy jobs, often we just skim through the list headings and read those that interest us. Also, DO NOT reply to an unrelated post to ask a different question. This confuses those reading the thread and may lose people that would be interested in your question. Always start a new topic with a new mail.
    <i>Bad subject: Urgent problem with workflow</i>
    Good subject: Error after transport: "Inconsistent workflow definition"
    Do not use words in capital letters and any of the words: urgent, quickly, burning, etc in your message. Especially not in the title! This just irritates and does not help you get to your goal. From our side, we definitely do not answer faster when we see these words.
    <i>The same goes for such things as ??? or !!! in appends. In the English language one ? or ! is sufficient to terminate a sentence.</i>

Maybe you are looking for

  • Power Supply blows a fuse, Ext Soundcard power outages, Time Machine.

    Power Supply blows a fuse, Ext Soundcard momentary power outages. Time Machine won't backup. Ok here's my setup Mac Book Pro 13" APRIL 2011 latest firmware. 8GB RAM. Surge Protected mains connection.. M-AUDIO FIREWIRE SOUNDCARD AUDIOPHILE most recent

  • Setting a Custom Scope in a Page

    Greetings again i am trying to set a custom scope for my pages, i am following the example 6.3.2 Setting Scope in a Page - Create New Task Flow in the Oracle® Fusion Middleware Developer's Guide for Oracle WebCenter 11g Release 1 (11.1.1) E10148-06.

  • Problem in UWL

    Hi, We have deployed ESS/MSS 1.0 business Package on EP 7.0. sp13 I am encountering problem in UWL. Whenever i click on any task in UWL, it displays following error :- Services is not started. We had then change setting for sysstem >>WAS properties i

  • SRM-MDM Catalog - XI Scenario

    Hi, I am working on SRM-MDM Catlog 1.0 integration with XI. I have to configure scenarios in XI for: 1) Upload of Supplier catalog via Server File System to SAP MDM catalog. for example in XML Format. 2) Replication of Product and COntract data. We h

  • EXIT NAME OR BADI FOR FIELD IN MIGO TRANSACTION

    Hai all, In MIGO transaction,  I want to know the BADI or EXIT NAME in which the following fields are avilable . Fields name: exgrp, EXCISE_ACTION exact screen field name is : J_1IEXHEAD-EXGRP                                          J_1IEXHEAD-EXCIS