Material batch number in ORDERS05

Hi Friends,
I'm receiving a EDI 180(Returns) from the customer and I have to create a Sales order with type credit memo. In this process customer is sending material batch number in EDI NTE segment. I want to map this to field in to ORDERS05. Pls. some body tell me which IDOC segment/field I can map.
Thanks in advance.
Arjun

sorry to say that, but you should learn about the application, you cannot make the field empty, it is SAP design that the valuation type goes to the batch field in case of split valuation active wihtout having batch managment active.
your wish is not possible with enhancements, and if , you would create inconsistencies and bigger problems in subsecuent processes.

Similar Messages

  • Material Batch Number Generation

    Hi Experts
    I need Material Batch Number internally generated while performing the GR for purchase order as in below format....
    YEARWW-XXX (Running Number)
    - XXX - Running number should get Reset automatically, once the YEARWW changes. Means every week it get auto reset.
    Any standard USER EXITS avilable ? any other suggestions please
    Rgds
    RG

    Hi,
      Chekc the BAdi BADI_NUMBER_GET_NEXT or customer exit EXIT_SAPLV01Z_001.
    With regards,
    Vamsi

  • Pass batch number from ECC system to GTS

    Hi Experts,
    I want to pass material batch number(MSEG-CHARG) to GTS system while creating the material document(GR) in ECC system. This batch number should be displayed in item level at custom declaration screen and should be stored at table /SAPSLL/CUSWLM.
    Could you please help me how to do this? actually at ECC side i m not getting the api where i can pass batch number. also at gts how to retrieve the same even if we able to pass the same from ECC
    Many Thanks,
    Prafull.

    Hi,
    i suggest you to have a closer look at the BAdI for Mapping and Enrichment of Data from Material Documents (MM0C) on ERP site and also at BAdI for Mapping External Data to Customs Declaration.
    You will find them by following thes paths in the IMG:
    In your SAP GTS System:
    -SAP Customizing Implementation Guide
    --SAP Global Trade Services
    ---SAP Customs Management
    Business Add-Ins for SAP Customs Management
    Copy External Data to Customs Declarations and Customs Shipments
    BAdI for Mapping External Data to Customs Declaration
    In your SAP ERP (feeder) System:
    -SAP Customizing Implementation Guide
    --Sales and Distribution
    ---Foreign Trade/Customs
    SAP Global Trade Services - Plug-In
    Change and Supplement Document Data for Transfer
    BAdI for Mapping and Enrichment of Data from Material Documents (MM0C)
    To display the (external data) Batch number on the User Interface on the customs declaration document,
    you must implement  BAdI for UI Control When Connecting External Applications to CD/CS
    regards,
    Ralf

  • Batch Number field in FB03

    Hi Friends,
    My client would like to have one additional field "Material Batch Number" field (i.e MSEG-CHARG) column in FB03 - Document Display layout.
    Need your help in achieving it.
    Thanks in advance.
    Regards,
    Sangharsh Navada

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • Can we change batch number to any unrestricted stock

    Hi experts,
    while confirming production order of Finished good, material batch number is mistyped by pp person. qm person also blindly passed the material in the system. stock was posted to sales location as unrestricted stock,which is ready for sale. Is there any way to assign the correct batch number to the unrestricted stock, or to correct the mistyped batch number? pls.revert.

    Hi,
    Another way (this is a quick fix way, and you will have to see that this does not break anything elsewhere in the system) for to do this is create the batch using MSC1N, and transfer the stock from the incorrect bacth to this new batch. You can use 311 (use the same source and receiving Sloc, just change the batches) or also 309 (again, use the same material number, different batches). The reference will be available in the MB51 list. Please check if there are any Z reports that pick the bacth number from the Order table, becuase this will refer to the incorrect batch only.
    I would recommend that you refer this first to your FI and CO person to see that there are not detrimental effects. If the material is on Standard price this should not be a problem.
    Hope this helps.
    Nishant

  • Missing batch number when running MI31

    HI experts,
    Please help me investigate this issue:
    We create PID using t-code MI31. After creation, we found, for a material, all of its batch numbers were successfully included in PID, except for only 1 batch. I investigate the missed batch and found that no PID has been created for it before, therefore according to standard logic it should not be excluded from MI31. And this batch is normally used for production.
    Besides missed batch, there are also some missed materials in MI31. These materials have stock in system.
    Any one can advise me what may be the problem here?
    Thank you very much.

    Hi Jurgen,
    You are right. I have to commit that errors are due to our end users and myself. There's nothing wrong with MI31. Thank you very much.
    Another question regarding to this issue: How many times in a fiscal year does SAP allow us to create PID for a specific material & batch number using MI31 WITHOUT selecting indicator "include material subject to PI" and "include batch subject to PI"?
    Some said number of allowed times is 1 per year, some said other. Then I need a confirmation.
    Thank you & regards,
    Duc.

  • MF60 : Pull List printout without batch number

    Dear guru ,
    I create a stock reservation (mtype 311) for a specific material batch number running MF60.
    In the replenishment proposal printout  the batch number is missing.
    How can I add the batch number in the printout ?
    Thanks.

    is it standard print or ur own form format.
    if ur own then ask abaper to have batch no also in the output.
    and if its standrad, i think it should be there since as per my knowledge batch no will come in all print if there are any print for that.
    REgards,
    Pravin Mukkawar

  • No New Batch number creation at the time of Material Transfer Movement(309)

    We are upgarding from 4.6C to ECC6.0. We have an issue in regards with the material movement type 309. At the time of creating the material tranfer using the same material as issuer and receiver, the same plant and storage location ( this process is used by the business to diferentiate batches).
    In 4.6C a new batch number is created automatically when 309 movement is posted; stock and characteristics transfered are allocated at the new batch created automatically.
    The same case in ECC6.0 does not create a new batch as done in 4.6C. We have looked for any SAP note or forum discussion without success.
    If anybody has an answer for this issue, let us know.

    As a matter of fact these configuration has been checked before, additionally we compare configuration at 4.6C and ECC6.0 and it is the same but the new batch creation (for this specific case) is working at 4.6C, not at ECC6.0.

  • Logic to retrieve batch number in batch split scenario for a material

    Hi All!
    LIPS-CHARG gives the batch number for a material in normal scenario.But in batch split scenario for a material what should be the logic to retrieve the field batch number based on POSNR,VBELN and UECHA in LIPS.
    UECHA corresponds to higher level item of a batch.
    I had been given the following logic to do the same but it is not pulling any values inspite of a batch split available for the material.The logic is
    Select lips-charg (batch number) where  lips-posnr = lips-uecha ( higher level item batch)
    Please advise
    Regards
    Praneeth

    Hi Praneeth,
    The way LIPS records are in a batch split scenario is that let us say you have a delivery with one line item 00010. Now if this splits into two batch split items, then you will find in LIPS 3 records, one with line item 00010, one with 90001 and another with 90002. Both 90001 and 90002 will have a UECHA of 00010, whereas for 00010, this field will be blank. So the logic is to create two internal tables one where UECHA is blank and another where it is not blank and use it.
    SELECT * FROM LIPS
             INTO TABLE I_LIPS
            WHERE VBELN = P_VBLEN.
    I_LIPS_TEMP[] = I_LIPS[].
    DELETE I_LIPS_TEMP WHERE UECHA IS INITIAL.
    *-- This table will not have only the batch split items not the main items.
    LOOP AT I_LIPS WHERE UECHA IS INITIAL.
    *-- loop at the main items.
      IF I_LIPS-CHARG IS INITIAL.
    *-- batch is not there on the main item, see if it is there on any batch split items.
        READ TABLE I_LIPS_TEMP WITH KEY UECHA = I_LIPS-POSNR.
         do whatever
      ENDIF.
    ..... do whatever
    ENDLOOP.

  • Map BATCH number corresponding to ORDER number and Material number .

    hi all,
    i want to map the BATCH number corresponding to Material Number .
    i searched tables MCHA which has two fields Material number and Batch number but it doenot have Order number.
    so how can i get Batch number as in table AFPO/AFKO i have all these three fields batch/material/order numbers.
    but the batch number column is blank for all .
    and in case of table MCHA , these is assigned batch number to every Material number .
    also i want to ask , either the Material number in both tables (MCHA AND AFPO) is same or different as i didnot found any relation to map these three field by other fields too.
    so please suggest me the Possible way to resolve this .....
    sunny

    hi dsk,
    thanks for your earliar reply,
    actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
    how can i map batch number with corresponding to PO num ber, '
    in the report i used structure vbplp with field charg"(batch num).
    also i want to know from which table i can get customer part number and Po number .
    how can i add batch num ,..
    from which table or with which field i can compare itr to get .
    sunny

  • Change Batch number for a material

    At the time of GR, incorrect batch number was posted. Now I want to change the batch to a new batch number. Is it possible to change the batch of a material ? If so, how ? Thanks for your help.

    Hi,
    No problem you can change the batch number if the stock available in unrestricted use follow the below step.
    Go to Transaction MB1B, enter movement 311, plant, storage location and press enter.
    In next screen enter Material code quantity received batch number then press enter.
    After enter the screen will be change here you can change the issue batch number what your required and press enter save.
    Now check the Batch number in stock overview.
    Let me know if any query.
    Regards,
    S.Babu

  • Raw material's batch number

    Hi Experts
    I have one raw material which could be managed as Stock and Non-stock at the same time.
    Is any way to avolid creating batch number when I get this material as Non-stock ?
    I'd like to create batch number only when I get it as Stock.
    Any idea ?
    Thanks.

    Dear Moufou,
    Yes you can certainly achieve that (i.e no batch creation for non stock e.g account assigned PO)
    For this go to -> SPRO- >Logistics General ->Batch Management- > Batch number assignment ->Activate Internal Batch Number Assignment ->
    Here select the second Option Internal Batch Number Assignment for assigned goods receipt (i.e for account assigned PO)
    Deselect the option Bch no. automatic f. GR w. acctAss for your Plant
    So batches will be created for stock PO (normal PO i.e without account assignment)during GR  and will not be created for non stock ( account assigned PO) during GR for the same material

  • Process Order number as batch number for produced materiai

    Hi gurus
    Is it possible in SAP to automatically set the process order number as the batch number for an semi finished good or finished good? Is there a config like that in SAP?
    Thanks

    Hi,
    Refer this [link|http://help.sap.com/saphelp_46b/helpdata/fr/e9/c6f9bdaa28d3119b440060b0671acc/content.htm]
    you have to use EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 in the case were you want to Copying the production order number to the batch number.
    Regards,
    Dhaval

  • Creation of Batch number

    Hi Experts,
    I have a probelm with the Transaction MIGO to restrict the ignore the batchnumber entered by the user.
    If the user is not enter the batch number, then i can generated the new number by using the following 2 UE's
    EXIT_SAPLV01Z_001 (ZXVBZU01)  & EXIT_SAPLV01Z_002 (ZXVBZU02) and it is working fine.
    If the user enters , then System first check that whether it is already exist in the Database . If it won't find then automatically it is considering the same number.Which needs to be stopped.
    Any body has an idea about this requirement, to ignore the user entered value.
    Actually, there are 2 more exists, EXIT_SAPLV01Z_011& EXIT_SAPLV01Z_012 there i can't change the value of the batch number.
    Any suggestion or Any alternative way or Any idea Please......?
    Warm Regards,
    Vijay

    Hi,
    I think you can restrict by using FM EXIT_SAPLV01Z_001, this i copied the FM documentation for your reference. Just read the FM documentation you will get an idea
    You can restirict by using automatic generation using number ranges
    <<Function module Documentation>>
    Functionality
    You can use this customer function call (CFC) to replace the standard number range (object, subobject, number range, and year) with one of your own. This is used subsequently to determine a new batch number.
    Number assignment is carried out using the central number assignment.
    The communication structure X_BNCOM contains the application data known up to this time. You can extend this structure in the DDIC using structure BNCOMZ.
    Using the parameter CUST_NO_INTERNAL, you can suppress the number assignment function. Then you can either generate a batch number in function module EXIT_SAPLV01Z_002 using your own criteria or suppress the entire number assignment function.
    Using the parameter MESSAGE_WHEN_AUTO, you can decide if a dialog box is to appear before a new number is assigned. This only happens during online processing.
    Example
    You can define internal batch number assignment according to your requirements via the enhancement SAPLV01Z with the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002
    SAP delivers a total of 6 examples for batch number assignment:
    1. Copying the production order number to the batch number
    2. Copying the sales order number to the batch number
    3. Material-type-dependent batch number assignment
    4. Material-number-dependent batch number assignment
    5. Including the date in the batch number
    6. Including the plant number in the batch number
    For examples 1 and 2 you have to use the exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002.
    For examples 3 and 4 you have to use the exit EXIT_SAPLV01Z_001.
    For examples 5 and 6 you have to use the exitEXIT_SAPLV01Z_002.
    For a detailed description of the examples, see below.
    Prerequisites
    1. Internal batch number assignment via the customer exit is activated:
    To do this, in Customizing, choose Logistics general -> Batch management -> Batch number assignment -> Activate internal batch number assignment.
    2. Maintaining the number range object
    Two number range objects are provided for batch number assignment:
    Standard number range for batch number assignment BATCH_CLT
    Number range for material-type-dependent or material-number-dependent batch number assignment BATCH_MAT
    Activities
    1. Use the SAP enhancement SAPLV01Z:
    a) In transaction CMOD, create either a new project or use an existing project.
    b) Add the SAP enhancement SAPLV01Z to the project.
    2. Copying the example code:
    a) Choose Component.
    b) Choose Change.
    c) Choose:
    EXIT_SAPLV01Z_001 for examples 1-4
    EXIT_SAPLV01Z_002 for examples 1-2 and 5-6
    d) Choose Edit -> Copy SAP source text.
    The example code is copied to the relevant table in the function module exit.
    e) To copy the example, remove the comment symbol before the include it pertains to.
    3. Activate the project.
    When you activate the project, the enhancement with the function module exits EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 comes into effect.
    Examples
    Example 1
    Copying the production order number to the batch number
    When a batch is produced, the process order number or production order number is copied as the batch number. This type of assignment is only possible in connection with process orders or production orders.
    Outwith an order, a number range is determined for batch number assignment. In this example, it is the standard number range BATCH_CLT.
    If the order has not yet been saved (for example, when a number is assigned when the order is created), a temporary number is created. A message appears prompting you to save the order. The system then assigns an order number which is accepted as the batch number.
    The system checks whether a batch already exists with this number. If this is the case, the system aborts internal batch number assignment with a corresponding error message.
    Note:
    In this example, note that the include LXVBZB21 in EXIT_SAPLV01Z_002 has to be activated at the same time, as actual batch numbers are not assigned until this is activated.
    Example 2
    Copying the sales order number to the batch number
    If a batch number is assigned in connection with a sales order, the sales order number is accepted as the batch number.
    If there are no sales orders, a number range object is defined with a number range from which the batch number is taken. If a batch already exists with this sales order number, the batch number is assigned externally.
    Note:
    In this example, note that the include LXVBZB22 in EXIT_SAPLV01Z_002 has to be activated at the same time before actual number assignment can take place.
    Example 3
    Material-type-dependent batch number assignment
    In the number range object BATCH_MAT a separate sub-object is created for each material type. Note that the number range object is maintained accordingly or batch number assignment cannot take place.
    For example, if the material "flour" belongs to raw materials, it is maintained in the sub-object ROH, and the batch number is taken from the same number range as the material "eggs" which also belongs to the raw materials group.
    Example 4
    Material-number-dependent batch number assignment
    In material-number-dependent batch number assignment, materials that are handled in batches must be maintained in the table BNMAT, which specifies the assignment of the material to the number range.
    If there is no assignment in the table, the system aborts batch number assignment. An error message appears informing you that batch number assignment is not possible and specifying the table that has to be maintained.
    Each material number is assigned a number range object, a sub-object, and a number range in the table BNMAT. This is how each material receives its own batch number range.
    The number range object BATCH_MAT is an example of this. The material numbers are divided into groups via their material type that match the sub-object. Each material number is then assigned its own number range by table BATCH_MAT. The number ranges used must be maintained in the number range object.
    Examples 5 and 6
    Including the date or plant number in the batch number
    The number ranges for the batch numbers must be defined in a way that ensures that no characters are overwritten by the templates.
    Parameters
    X_BNCOM
    CUST_NO_INTERNAL
    NR_RANGE_NR
    OBJECT
    SUBOBJECT
    TOYEAR
    MESSAGE_WHEN_AUTO
    MESSAGE_DONE
    Exceptions
    CANCELLED
    Regardas
    Krishna

  • Listing Batch Number with transaction detail

    We use the Sales Order Usage Indicator to designate a Site location for order materials we supply to customers' building sites and I've written a report that lists component material details used in the Production orders created per sales order for each of those sites. What the user department would like is for the batch managed items detail to include the batch number associated with the material.
    However, I'm finding it difficult to find which file this batch number data is actually in. I've found some batch numbers in RESB (which I use to get the component material number and configured data) but out of the millions of records in there only about 66 have the batch number included in the record. The other files I've checked that include the batch number field do not have any data in it. It is at component level that the batch field should have a batch number included.
    Can anyone please advise as to where I can find the relevant data to complete my report.
    FYI, I start with getting Sales Orders with selected Usage Ind in from VBAK, then pick up relevant sales order item data from VBAP with joins to MARA and MAKT for basic material data.
    I get the Production order number from AUFK using the Sales order number and then I chain to RESB for the component material data using the Productioon order number. I pick up the batch field from RESB at this time but so far it has always been empty.
    Thanks very much
    Jim Jackson

    Thanks, Jurgen
    I was hoping to get away without using the MSEG file because of the size implications and resultant search time - as per BSEG on the financial side of things. 
    Anyway thanks for the confirmation of what I need. Much appreciated.
    Best regards
    Jim

Maybe you are looking for

  • Can I display rich text in a textfield?

    I've created a form in LiveCycle Designer and there is a text field that is retrieving data from a table. The data in this field is entered from a ColdFusion form and its using the Rich Text Editor in the form. Because of this, the data that is displ

  • Strange issue with Apple ID in iTunes and Safari

    I have a client who recently has had a very odd issue with his Apple ID.  He is unable to purchase any music from the iTunes store on his MacBook Pro running 10.9.4 and iTunes 11.3.  When he tries to purchase a song from the iTunes store, he enters i

  • Photosmart C7250 will not install with Windows 7

    I have bought a new computer wth Windows 7.  My Photosmart C7250 will not install on this operating system wirelessly or by USB.  The driver will install so that I can print only when I plug it in, but I cannot achieve full functionality.  When I try

  • WRT300N dropped wireless completely

    I've had this WRT300N for several years and it has worked very well. It suddenly dropped all wireless connections and no one can re-connect.  My main pc is hard wired directly to the router and works perfectly as always.  3 wireless pc's and 3 handhe

  • WHY CAN'T THEY STOP CALLING

    I have Verizon Wireless and I NEED them to stop calling me about my plan and try to upgrade me to something BETTER when its really not!!! I don't want to hear about how it takes 30 days to take me off the list...it can be done by a computer delete ke