BAPI_GOODSMVT_CREATE, and automatic batch numbers

Hello,
I am using BAPI_GOODSMVT_CREATE and doing good receipt vs., a Purchase Order, GM 01.    The material is auto batch managed and I see the batches are generated when I go into MSEG for the good receipt line items.   However, batch numbers are not returned in the bapi return information.
Is there a way to get the batch numbers to return in the BAPI_GOODSMVT_CREATE bapi?  If so, please let me know.  If not, please also let me know and I will do a subsequent look-up to get that info.
Thanks

BAPI_GOODSMVT_CREATE will return the material document number posted. Use that to get the batch number from table MSEG.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
  EXPORTING
    GOODSMVT_HEADER  = LS_GOODSMVT_HEADER
    GOODSMVT_CODE    = LS_GOODSMVT_CODE
  IMPORTING
    GOODSMVT_HEADRET = LS_GOODSMVT_HEADRET
  TABLES
    GOODSMVT_ITEM    = LT_GOODSMVT_ITEM
    RETURN           = LT_RETURN.
IF LS_GOODSMVT_HEADRET-MAT_DOC IS NOT INITIAL.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT   = GC_TRUE
    IMPORTING
      RETURN = LS_RETURN.
  SELECT SINGLE CHARG FROM MSEG INTO LV_CHARG
          WHERE MBLNR EQ LS_GOODSMVT_HEADRET-MAT_DOC
            AND ZEILE EQ '0001'.
ENDIF.
*Assumes single item document posted

Similar Messages

  • Userexit EXIT_SAPLV01Z_001 for COR1 (batch numbering)

    Hi guys,
    I have a strange problem.
    Our customer is upgrading from 4.6B to 6.0 (701), and their user exit EXIT_SAPLV01Z_001 (used for automatic batch numbering in transaction COR1) stopped working.
    I just don't seem to pass through this code while debugging, even though the project seems to be active etc...
    Any ideas what might have changed between 46B and 701?
    cheers
    Rob

    >
    Vipin wrote:
    > Hi,
    >
    > Check whether Internal Batch Number Assignment is active.
    >
    > Regards,
    > Vipin
    Thanks, Vipin.
    For some reason, internal assignment was switched off on the DEV system, and on on the PRD system. I could 've been debugging until hell froze over

  • Need tables for tracking Invoice Items back to the Batch Numbers/Item codes

    Trying to build report to show the Inventory movement from a Sales Invoice Item back to the source items and the Batch Numbers for assigned along the way.  Having problems finding all the tables to connect the Batch information to the Invoice information.
    In B1 under batch management I can see fields that belong to tables RBTN, RITL and OBTN  but I can only find OBTN in Crystal.
    Are these tables hidden for some reason or are they Temporary tables that B1 creates when opening the form/report.

    You may check this: Re: To what table are Batch# saved to with SAP 8.8

  • Automatic Batch in MTO Scenerio (WM)

    Hi
    In MTO Scenerio i have activated WM and Automatic Batch.When stock is available in 2 batches system does not picks stock from second batch because of this iam unable to make PGI.E.G Mtrl 1000 have stock in batch  XX -20 Nos and YY-30 Nos and iam raising order for 50 Nos during delivery after TO system picks 50 Nos from batch XX (Even the stock is 20 only) and during PGI system throws error message "Deficit qty in Batch XX".System is not picking the stock from second batch YY
    *But system should pick the 20Nos from Batch XX and 30 Nos from Batch YY
    Can anybody help me in sorting out this issue and where should i do the config

    Karthikeyan SD,
    1. Check  IMG --> Logistics  GEneral --> Batch Mannagement --> Batch Deteremination and Batch Check  --> Strategy types --> Define Sales and Distribution Strategy types
    Choose the strategy types and click details button, Check under sub heading "Batch Split"  whther you have maintained no of splits, Activated "Changes allowed indicator".
    2. Check  IMG --> Logistics  GEneral --> Batch Mannagement --> Batch Deteremination and Batch Check  --> Batch search Procedure Allocation and Check Activation --> Allocate SD Search Procedure/Activate Check
    Check here whether you have maintained your search procedure  for Sales area and Document type.Check  "Check Batch" Activation Indicator.
    3. For Batch Split you need to maintain Batch split Item Category - CHSP
    Try to maintain Delivery Item category determination IMG u2013-> LE --> Shipping --> Deliveries --> Define Item Category determination in deliveriesu201C as
    LF(Delivery Dcoument Type) --> NORM (item category Group) --> CHSP(Usage) = TAN
    Regards
    Sathya

  • Error in automatic batch determination in delivery

    Hello Experts,
    I have an outbound delivery created for a STO.
    The issue is the batch is not getting detected automatically in the delivery and i have to manually enter the batch.
    I have checked in SPRO and automatic batch determination is activated for delivery item category.
    Can anyone please guid what further i need check to have the batch being automatically detected.
    Thanks.

    Hi Nish,
    Since the delivery is related to STO, pls check the following config settings.
    1. spro-->logistics general->batchmanagement->batach der and batch check->batch search procedure
    allocation and check activation->allocate sd procedure/activate check.
    (Before performing the below steps define the strategy type and assign the strategy type to procedure)
    SLSORGDCDIVDOCTYPESEARCHPRO+CHECKBATCH
    10001010DLSD0001+X
    10001010nlSD0001+X
    2. Activate automatiic batch determination in SD-> auto Batch determination for deliveryitem categories
            NLN
            NLC
    3. Check the delivery item cat determination for batch split.T.code:0184
         nlccnormuln
         nlccnormchsp+nln
         nlnormuln
        nlnormchsp+nlc.
    4.Now maintain the strategy type Ex:SD01 with VCH1 T.code along with your own sort rule.
    These above config settings should satisfy your needs.
    Regards,
    Satish
    Edited by: Satheesh on Jun 11, 2009 5:24 PM

  • Updating documents - adding batch numbers to lines

    Using the DI Server, we want to be able to update a document (such as a Goods Receipt PO) and create batch numbers for lines where the item on the line is set to batch on release only (hence we were able to create the document with no batch numbers on in the first place).
    Currently, when we do this, no error comes back from the DI Server, but the batch numbers are not added.

    Hi Jim,
    Adding lot numbers to pick tickets would not be possible (out of the box)
    Suda

  • T code MIGO automatic batch

    Hi experts
    In T code MB11 using movement type 309 i am getting automatic batches. But when i am using T code MIGO using movement type 309 i am not getting automatic batch numbers. Is there any settings r there?
    Thank you

    Hi Maria
    I am having similar requirement for movement type 201.
    Batch determination is working fine in transaction MB1A but not working in MIGO.
    Did you get solution? please share.
    Kuldeep Jaiswal

  • Auto batch split and auto batch determination

    Hi Experts,
    I want to know what are the settings for automatic batch splitting and automatic batch determination?
    Thanks in advance,
    Jyoti

    For automtatic batch determination assign the search strategy with batch check indicator in OPL8 transaction for order types. And in transaction OPJ2 enable the indicator BD (batch determination) for order type.
    Batch splits can only be triggered manually in the production order. For this the material master record of the material must specify that the material is managed in batches and batches must exist for the material. You can split the batches in order from change mode by selecting the opeartions and go to split the batch..you will get the pop-up for all existing batches then here you can assign the quantities for the operation from batches and save.
    No automatic batch splits in production orders.
    If helps rewards points.
    Regards
    TAJUDDIN

  • Automatic and manual batch determination at the time of Goods receipt

    hi,
    where i can have the settings for automatic and manual batch determination at the time of Goods receipt and goods issue..
    E.g.: If i am receiving material from vendor then my requirement is system will generate batch automatically...
    Where  we can get this setting?
    Tx
    Uts

    Dear,
    You assign the batch number either
    Manually
    Automatically, using internal batch number assignment, refer to Customizing for Batch Management under Internal batch number assignment.
    Internal batch number assignment is activated for the complete client, unless you exempt individual plants or materials using a customer exit (see Configure customer exits for intern. batch number assignment in Customizing for Batch Management).
    The R/3 System informs you that the internal batch number assignment is active. You are however only informed once per transaction, for example, when you enter the first item on the multiple-entry screen.
    Please refer: http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm
    Regards,
    Syed Hussain.

  • What are the Pros and Cons of Using Batch Numbers over Serialization

    Dear SAP Gurus:
    Will someone please give me the benefits of using Batch Management over serial numbers in this case scenerio, or vice versa:
    Client wants to trace all the components of an assembly in a BOM.  Even the Raw material.  The client sends the material out today and has the vendor assign serial numbers to the individual pieces, the client gives the range of serial numbers to use.  We are looking at using batch numbers to accomplish this and issue one material and batch number to a production order.  Then use MB56 batch where used functionality to view history.  I am wanting to understand the benefits of this.  Please advise and points will be awarded as always. 
    Also, in this scenerio, can you issue multiple material/batch numbers to one vendor op that has its own production order?

    Yes it is a subcontract. 
    Example:  This is the solution but need the pros and cons of doing this scenerio
    Sheet of metal sent to vendor to make lets say 1800 peices of material number nas5703-01.  All 1800 pieces come back and issued to a production work order using one bacth number for one material item so that batch number can be traced in history in MB56 and a fit up report.

  • How to get batch job o/p in PDF format and automatically saved to xyz loc

    Hi Experts,
    Our requirement is we want output of background job in PDF format and this PDF generated should be saved in some xyz path at OS level.
    Why doing this?: Business don't want hard copy o/p of some batch jobs but only want to save this output in pdf format to some OS location for future use.
    We could achieve above objective by archiving method (but for some reason we cant adopt it).
    So guys please propose solution in detail regarding above problem "how to get o/p in PDF format and automatically get saved to xyz location"
    System : 4.0B
    OS : Windows NT
    Database : Oracle
    Thanks in advance

    Hi guys,
    Thanks guys for your invaluable advise.I asked abaper to use the above report for pdf conversion. But I have another problem that o/p of batch job should come in japanese language but when i check spool or hard copy o/p its not coming in readable form (seems something like machine language) . I dont what is the reason there must be some basis setting to get the batch job o/p in japanese language.
    Please help me.
    thank you

  • Report for batch numbers and delivery

    Dear gurus,
    Is there a report that
    I can see batch numbers and delivery at the same time?

    Use t.code VL06 and click on List outbound deliveries button.
    In the selection screen, enter details like sales org, distribution channel, division, shipping point and actual or planned goods movement date (per your requirement) and execute.
    In the next result display click on item view button. To get the batch data, click on change layout button. From the list of fields available (hidden field list) on the right hand side, select on batch and click on left arrow button.
    Then click on copy button. You can see the batch details with delivery line items.
    This report is useful, where in you can select addtional fields from layout button.
    Regards

  • How  to modified automatic batch number with plant and current year details

    hi all,
            i want tomodify automatic batch number with plant and current year details. if any one understand plz explain.
    thanks,
    radhakrishna.

    Hi,
    I am not clear what is u r requirement exactly?
    I  mean you don't want automatic batch no or modify the batch no.  with plant means and Current year details means.  Can give details more
    Regards
    Ganesh

  • Automatic batch determination - access sequence and search procedure

    Hello all,
    I would like to know how will the system automatically start a batch determination for TOs in warehouse.
    pl. post any documents related to it.
    I would like to know how to activate automatic batch determination in the system for transfer orders in warehouse management. is there any specific t-code or should i make any customizing settings in Batch management.
    Also how to create access sequence and how to activate or create search procedure/business procedure while implementing automatic batch determination. is there any specific t-code or should i make any customizing settings in Batch management.
    Pl. post any links or config. documents for automatic batch determination.
    Thanks,
    Maxx

    hi
    in delivery select the line item click on batch split, then click on batch determination.
    you will find strategy analysis  icon click on that.
    you can analyse your condition type  and understand for which combination condition record is maintained and batch  got determined.
    regards
    Gopi Ponnala      

  • Photoshop CS 5 crashes after updating and then using File -- Automate -- Batch

    I am running Photoshop CS5 (build 12.0.4 x32) on my XP 32-bit machine and have done so without major problems until about a week ago.
    Then all of a sudden when accessing File --> Automate --> Batch the program crashes and I have to force it shutting down manually after which I can restart Photoshop. When trying to access the batch command hereafter the same crash reappears rendering batch commands useless.
    I thought about posting here but then decided to reinstall Photoshop again. This enables the fully working software including batch commands once again. However after a short while the update software asks to download and install some patches for all programs. After doing so the same problem happens again in regards to the batch command. Photoshop crashes when accessing it and won't work at all.
    I now repeated this procedure twice and have no idea what to do about it.
    Is there anybody that has had this experience or knows about a solution?
    Do I have to contact Adobe with an error report?
    Any help and comment is welcome and mostly appreciated.

    Chris Cox wrote:
    Yes, a change in the Adobe update made the existing scanner bug show up more frequently.   No, that does not make your statement correct. The bug exists in the scanner driver, and existed before the Adobe update.
    The Adobe update is not the cause of the bug, it just made some unrelated change that made the bug appear more frequently.  That could be something as simple as putting different values in different locations of memory.  We don't know. Only the authors of the scanner driver can know for sure why it is crashing more often now.
    Photoshop supports the TWAIN standard, but cannot be responsible for the bugs in the third party drivers that attempt to implement that standard.
    The high frequency of bugs in TWAIN drivers is what made us move the TWAIN plugin to "optional" status in the first place -- because too many people were crashing, had a hard time figuring out the cause, and blamed Adobe for something completely beyond our control.
    And we already do inform scanner vendors about all the bugs we find in their drivers. But we cannot force them to fix their bugs, nor can we know the nature of all of their bugs to code around them.
    I understand that you're angry.  But please stop trying to blame an innocent bystander.
    Adobe cannot do anything to fix the bugs in your scanner driver. Only the authors of your scanner driver can fix the bugs in your scanner driver.
    Until they provide an update to fix the bugs in the driver, your choices are to keep crashing, or not use that buggy scanner driver.
    I am going to make this short.
    It depends on how you look at it. From your angle, Adobe did their's and the scanner companies are to blame for their buggy software. What you are saying here would be - if compared - resemble a situation where you would go to a car dealer, buy a car, then drive away just to find that the trailer tow hitch you attached your old trailer to would keep falling off all the time. When confronting the dealer about the issue he would reply to you that you have to talk to the manufacturer of the trailer because the problem is their responsibility. How would you as a client react...?
    Maybe it is true that the driver software is buggy. However it still did work though under other conditions before this update. That means that you updated something that made these things appear frequently. Maybe you don't know and only they do. Fair enough. But us customers don't have to work these problems out or live with them nor do we have to use our time on posting and fixing companies' errors and mistakes. That's what we pay you for. We only need to use this application hassle free on the spot. Maybe you should start crash testing in an controlled environment before you apply these updates and then post them. Or make a deal with those companies to do so for you. Maybe they will then ignore you or won't tell you about possible bugs to hike their own skin. Fair enough as well. Create some sort of program, a label or whatever that you apply and hand out only to those companies that are "certified by and working with Adobe software" and that they can put on their products or you on your very own Adobe website for all us customers to see and to use as a type of guidance in order to have working hardware and applications and avoid these errors.
    There is this saying that goes...
    "Where there's a will, there's a way"...!

Maybe you are looking for

  • REPORT BUILDER ON WINDOWS 98

    HI I HAVE ORACLE 8i AND DEVELOPER 6i. iS THERE A WAY TO GET REPORT BUILDER IN DEVELOPER. FORM BUILDER AND EVERYTHING ELSE IS WORKING PERFECTLY I JUST DONT KNOW WHERE TO GET REPORT BUILDER DOWNLOAD FROM. PLZ HELP

  • Pre-compiled JSPs with main_mode = recompile

    I would like to precompile JSPs and allow changes to be recompiled after an application has been deployed. In other words, I want to use ojspc to precompile my JSPs and set main_mode to recompile in web.xml. In such a scenario, I would like changes t

  • Killing JFrames in a JFrame

    Hi, I have a few JFrames popping up in my program with GUI stuff in it, what i want to do is to use the 'OK' / 'CANCEL' buttons i put in the JFrames to work, i.e. 'Cancel' should kill the internal JFrame and 'Ok' should do something with my inputted

  • One song not authroized; all otheras are. Help?

    So, last week I d/l'd the complation of Glee's music from Sectionals.  All songs came through fine, but for some reason, "Control" is saying it is not authorized on my computer.  It won't accept my username/pw to authorize it for the comptuer.  All o

  • How to play MPEG 4 (h.264 / AVC) videos that were encoded for the PSP

    Hello, I am trying to play a video in MPEG 4 (h.264 / AVC) format (file extension .mp4) that was encoded to play on the Sony PlayStationPortable (480x272) via QuickTime. The video plays perfectly via VideoLAN, mplayer or the PSP, but QuickTime only o