Auto Batch Creation Unique Fields

Hi All,
I have created 2 UDFu2019s in Marketing Documents ie Attribute1 (32Char) and Attribute2 (32Char). I have made a PurchaseOrder of 6 row Items and entered values to the above UDFu2019s. Now I copy that PO to GoodsReceiptPO and all the data along with the UDF values get copied to GRPO.
In my 6 rows I have same item eg ABC repeated in 3 different random rows. This item is a Batch Management on every Transaction item. When I try to add the GRPO, a Batch setup Screen pops up, Onthis Screen on the upper matrix ie Rows from Documents Matrix you will find the 3 rows of the same Items. When you Click on Automatic Creation button, an Automatic Batch Creation Screen Opens. On this Screen you have 2 fields ie BatchAttribute1 and BatchAttribute2.
What I want is how do I pass the udf values of GRPO ie Attribute1 and Attribute2 value on this Automatic Batch Creation Screen. I am trying it to do with SDK but I cant get the reference of which ROWs Automatic Screen is Opened as all the 3 item are ABC and they are on different different rows in GRPO (say on row1 and row3 and row6) and all these rows have different different values in the UDFs. I need to put the respective values from GRPO to the Automatic Batch Creation Screen BatchAttribute1 and BatchAttribute2 fields.
I hope I am being able to explain you the entire scenario clear to you.
Which is the unique key which is hidden on the Automatic Batch Creation Screen which sap knows and we are unaware. For that reason I explained you the entire scenario. My question was just that sap should let me know which is that field in SAP that is storing and passing the DocNo and Line No of GRPO to the AUTO BATCH Creation Screen. This fields are not visible to us, so how do I get the reference of this field on Auto Batch Creation Field or is there any other field by which sap recognizes during the time of Auto batch Creation. Would really appreciate you kind support for the same.
Regards,
Murtaza

Dear Xiaodan AN,
Thanks for your suggestion, I tied it but doesnu2019t seem to work. I am on form no 65053 which is the Auto Batch Creation Screen and I need to copy the GRPO Attribute UDF into AutoBatchCreate Attribute Field as per my scenario given above.
Here is my code of Item Event,
If pVal.FormType = "65053" and pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK And pVal.ItemUID = "37" And pVal.BeforeAction = True Then
CopyAttribute(pVal, BubbleEvent)
End If
Public Sub CopyAttribute(ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
        Dim frmAutoBatchNo As SAPbouiCOM.Form
        frmAutoBatchNo = My_Application.Forms.GetForm("65053", 1) 
        Dim rowno As String
        rowno = pVal.Row
End Sub
As per your suggestion I tried to get the row of item event but for all the 3 items I am getting the same value of rowno = -1
Can you futher explain me with an code
Kind Regards,
Murtaza

Similar Messages

  • Batch number format setup and auto batch creation during first GR

    Dear all,
    This is a batch question.
    I know that both the master batch and the stock data for the batch are created automatically during the first goods receipt. Thus, I do not need to create this data manually.
    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    Thanks.

    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    ==> Yes - See IMG activity 'Define batch creation for Goods Movements'
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    ==> See exit EXIT_SAPLV01Z_003
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    [[> See IMG activity 'Activate Batch Classification for Goods Movements in IM"

  • Batch creation at co11n and co15

    Hi,
    I wann create auto batch creation at the time of order confirmation i.e. at co11n and co15, can anyone tell step by step wht confg shd i require?
    kindly assist

    Hi,
    If you are maintaining batch characteristics you cannnot create auto batch at the confirmation level as you have to create batch by the transaction MSC!N, then you can assign the batch number manually. IF you are not maintaining the batch characteristics then you can create auto batch at the prod order creation level that in the display mode or background, while doing confirmation you can automatically get the batch. If you want to get at the Confirmation level then the following steps
    1. Control key OP00  Allow Auto GR
    2. Scheduling profile OPKP   Auto GR
    3. Order type dependant parameters OPL8 Batch search procedure for 261 mvt type for raw material consumption.
    4. Material master MM01 workscheduling view batch reqd entry and batch managed and prod unit and prod stor loc
    5. Define batch creationn for batch creation for prod order
    6. Define batch creation for Goods movements
    7. Activate batch internal number assignment
    for 5,6,7 SPRO -- Logistics -- General -- Batch management.

  • Batch creation during process order

    Dear all,
               Can any body tell me for some materials Automatic batch is not creating after releasing the process order.
    Regards
    Ravi

    Dear,
    Go to MM02 of these materials click on work scheduling view and check which scheduling profile is maintained there.
    Then go to CORY and check same scheduling profile for Auto Batch Creation. If scheduling profile is missing then assign same in work scheduling view of material master.

  • STO Auto delivery Creation - Batch Job

    Hi Friends,
    I am facing issue related to auto delivery creation through batch Job for STO.
    I created a variant for auto Creation of delivery for batch Job using T code VL10BATCH, using the parrameter Shipping Point and Deliv. Creation date. The Batch Job is running fine, but my Client wants the delivery shoud be created from Delivery Date instead  of Deliv. Creation date.
        I tried to change the varriant , but could not find the delivery date as a parmeter to be selected.
    Is there any possible way to use delivery date for creation of Auto delivery instead of Deliv. Creation date.
    If not please tell why only deliv. creation date is given in varriant creation ,
    Regards,
    Kunal

    Hi,
    GO to VL04 there u just fill required fields and then go to menu bar program - execute in back ground then it will show u output parameters popup screen then enter. There u just give start data and time and then clikc on periodic values button there u select daily. Finally save. This will be run in back ground every day on specified time..
    Regards
    Sankar

  • Auto batch number creation on CO15 GR

    Hi experts,
    Can you guide me how to setup CO15, where during confirmation and auto GR of FG, system can supply a Batch Number (via specific logic in exit) automatically?
    Thank you!

    CO15 is the production order confirmation screen  and  if you acitvated AUTO GR for the order and if the material is batch managed ,  you should have configured  batch internal number active,  system will create a batch number automatically.
    Based on where you have created user-exit  ( if it is part of batch creation  BADI),  that should also kick in.
    You can also look in creation of batch at the production order level itself when the order is released. 
    cheers
    Rav
    Edited by: Rav on Jan 6, 2011 11:24 PM

  • Automatic batch creation at VL01N

    Hi,
    At the time of creating Outbound delivery in Tcode VL01N for particular material  I want the batch field to take the batch number automatically.
    Setting : Material ( Batch option is already checked in material master).
    Is it possible.
    Pl explain.
    Thx
    Uts

    Hi
    Utsa Agar
    Pl follow the following sterps
    1.CT01- Creation of Characteristics. ( Define Selection Class )
    2.CL01- change. ( Define Selection Class )   
         Add Characteristics in u2018CHARu2019 tab   And save .
    3.CU70 u2013 create u2018Sorting Sequenceu2019 and assign characteristics
    4.Batch Search Procedure & Strategy type
    V/C3 u2013 Batch  Search Procedure and assign the strategy types
    a.To create condition type T. code  V/C1
    b.To create access sequance T. code  V/C2
    5.V/C5 - Allocate SD Search Procedure/Activate Check u2013 assign sales organization , order type into Batch search procedure.
    6.V/CL - Activate Automatic Batch Determination in SD - Activate automatic batch det. for delivery item categories u2013 select item category and activate auto batch determination
    7.     VCH1 u2013 Create batch search strategy against strategy type as per the access sequence needed.
    Hope this will help you.
    Thx

  • Batch creation through ME21N, ME22N and MSC1N

    Hi All,
    Please note we are already using EXIT_SAPLV01Z_001, EXIT_SAPLV01Z_002, EXIT_SAPLV01Z_003, EXIT_SAPLCLFM_002, EXIT_SAPLV01Z_012, EXIT_SAPLV01Z_014 for Batch creation based on different logics for Material type, Plant and PO doc type and currently using these exits for logic it allows us to create new internal batch number during PO creation (ii) change already existing batch with some new number (of couse this number must not be used in some other PO) in PO change and (iii) create new internal batch number using MSC1N, by inputing plant, stor. loc etc. But currently i can create batch with 1 digit, 2 digit, and so on.
    The requirement is to allow user to create batches only with 10 digits during:
    (i)PO creation (ME21N)and PO change(ME22N) and also during
    (ii) transaction MSC1N
    currently in all three ME21N, ME22N or MSC1N it allows to create batch with 1 digit, 2 digit,3 digit and so on . i want to create batch with only 10 digit.
    Please tell this is possible through configuration steps or some changes are required to be done in above said user exit.
    Regards
    Rahul Shukla

    Hi Jurgen,
    Thanks for your reply.
    In ME21N i am able to assign batch in PO
    (1) By clicking on 'create' button appearing just side of Batch field in item Tab "Material". I think this create button is appearing due to user exit being applied here. Here it creates and assigns internal number automatically (from range 01in Batch_Clt) based on the Material type and Plant combination (Some logic defined in user exit)
    (2) By putting any random number manually (both numeric and alphanumeric)whether 1 digit, 2 digit,3 digit in Batch field in item Tab "Material" it will accept and in this case also po is saved.
    same way i can do changes in batch number in ME22N and able to save.
    In MSC1N also due to user exit applied if i give Material number alone  and enter, it assignes the internal batch number based on Material type and plant logic defined in user exit.here also if i input some random number manually in batch field it accepts and that random batch number is created for material.
    Now i want that i should be able to put random batch number manually but that number must be out of the number ranges defined in Batch_CLT object (Also the number must be exact 10 digits length as is there in defined number ranges) and not any random alphanumeric number . Also i am not able to understand how it is accepting random alphanumeric number (like ABC111)although all number ranges defined are numeric only.Also external number range is 0008000001 - 0089999999 which is numeric only.
    Regards
    Rahul

  • Auto PO creation from PR

    Dear All,
    I have done all process required for Auto PO creation from PR. With TCode Me59 i am able to create a PO also but some field in PO are blank like in header level Additional  tab - Validity Start and Validity End, in Communication tab - Your Reference and Our Reference.
    And while using ME59N, its shows error
    "PO cannot be created
    PO header data still faulty
    Enter Our Reference
    Enter Validity End
    Enter Validity Start
    Enter Your Reference
    Requisition could not be converted"
    How will i fill these field. Any link from info record or source list. These field are necessary in PO.
    Please anybody help me to solve this issue.

    Yes Sir. You have said the right thing. At first i have done the same that make these fields optional. but here as per our business these fields are mandatory for PO. Is there any other way that we forcefully enter data in these fields.
    And one more thing i want to ask, i have created PR through MRP run, in this how could i maintain fixed vendor, valuation type, purch org, info record. These all things are necessary to create auto PO creation. Now what are we doing that we create PR through MRP run and then go to change PR enter all these thing and then run ME59N. After that the same problem some fields are blank in PO.
    Please suggest me any other way to maintain this....

  • Problem during Auto PO Creation

    Hi
       Im using a user exit for Auto PO functinality ..
       I have following conditions for creation of Auto PO
       1) For PR with source of supply as Info record will not be converted in PO automatiocally as Info record contains historical prices..
       PR can be assigned source from Source list, contract or quota arrangment for converting it in PO automatically.
        I have maintained all settings require din VM and MM for Auto PO creation..
       Still these PR which satisfies above criterion are not converted in PO automatically..
       when i tried to convert these PR in PO using me21n , i get the message as conditions not mainined so i have to maintain conditions and net price manually..
    then PO can be created manually..
      so what im missing for Auto PO functionality..
    Thanks..

    Hi,
    I would recommend that you add your contract data to the source list for the material, then you will see it proposed as a possible source for this material.
    The problem with source lists are that if you do not have one the system will propose all existing sources for you to choose from. If you DO have a source list the system will ONLY propose sources from that source list.
    One option is to use the auto generation transaction ME05 as a regular batch job to keep the sources up to date.
    But if you want the outline agreement to be the proposed source when there are others to choose from then select this as the default in the source list.
    So I think that your problem is that your agreements are not in the source lists that you have.
    Steve B

  • Batch Creation/Modification

    Hi All,
    I want to update one z-table whenever any batch is created or modified (classification data change).
    My z-table contains Batch as key field. So, using CDHDR will not serve the purpose as when MSC2N is called for the second time onwards, CDHDR does not store Batch as only classification data is changed then.
    I tried with BADI Batch_Master but it will fire only in case of MSC1N or MSC2N, but not when BAPI_GOODSMVT_CREATE with 309 Movement Type is used for Batch creation.
    So, I want to update the table whenever there is any batch is created or changed.
    Please help.
    Rgds,
    Avijit

    Did you check:
    EXIT_SAPLV01Z_005     BATCHCHK     Function Module Exits for Check in Case of Batch Changes
    EXIT_SAPLV01Z_006     BATCHCHK     Function Module Exits for Check in Case of Batch Changes

  • Auto batch pick in 201 movement type

    hello all,
    i want to pick batch automatically when we issue the goods to costcenter 201 movement type.
    we already have 4 plants in which auto batch determination is already there.when we enter the * in batch field,batch is automatically picked.
    all the plants have same configuration but only for one plant automatic batch determination for movemeny type 201 is not picked.
    regards
    sumit

    Hi,
    movement type also import for same
    check following link
    [http://forums.sdn.sap.com/thread.jspa?messageID=5907502#5907502]
    Regards
    Kailas Ugale

  • VL01N deactive Auto batch determination

    Hi experts,
    i need to deactive the mark Auto batch determination (TVLP-CHAUT or TVAP-CHAUT) for plant that doesn't have WMS when the transaction VL01N is executed.
    With user exit or BADI can be used to change this field TVLP-CHAUT? I haven't found a BADI or exit than contains this field.
    thanks in advance,
    Alejandro

    may be in MV50AFZZ
    FORM userexit_batch_determination.
    endform.

  • DI: Stock Transfer error (Unique field value does not match the system ...)

    Hi
    I made an add-on that makes stock transfers via DI API. The add-on has been running for two months with more than 10,000 stock transfers with almost no problems.
    The company that is using the add-on have all their products managed by serial/batch numbers.
    But just with one transfer Im getting the error in the stock transfer Add() method:
    "Unique field value does not match the system serial number [(----)29-52]"
    And I tried to debug it without success, I checked that the system serial numbers exists in the origin warehouse and are available. And I really can't find where is the problem.
    If somebody knows what this error means, please let me know.
    Thanks in advance,
    Regards,
    Allan

    Hi János, thanks for your answer.
    I found what was the problem, it was not exactly what you told me, but you gave me some insights to found the problem.
    The thing is that Im using UDT's to store the information of stock transfers (before creating a real SAP stock transfer), because of the funcionality of the add-on. After some user have done some steps or validations, the add-on actually does the real SAP stock transfer.
    The problem here was that my tables had some InternalSerial for some Item, for example the serial A-234, and before the real SAP stock transfer was made, they changed the serial from A-234 to A234 (in the serial number management). So the add-on was trying to create the transfer with the serial A-234, but the serial A-234 no longer exists.
    I have to create a validation that if they change the serial number for an item, I have to change it in my UDT's.
    On the other hand, Im not sure, but I think that I read before that you made a Warehouse Management add-on. This add-on that Im working now is a kind of warehouse management.
    Im having a lot of headaches because the poor accessibility to the user fields in the OSRI and OIBT tables. Im sure that you have faced problems with this. If you have any tips or advices about this it would be greatly appreciated.
    Thanks again,
    Regards
    Allan

  • E-Recruiting 6.0 SP11 - How to do data migration or batch creation

    Hi Experts,
    For R/3, we can use BDC programs to do data migration for personnel records.
    For E-Recruiting, how do we go about migration of candidate records or batch creation of candidate records (eg, BDC, standard function module, direct append)?
    If it is via function module, can you share with me the name of the function module?
    Thanks,
    William

    Hello William,
    the Business Partner is an application / module which belongs to the base components of the SAP. It is used and partly extended by various other applications / modules. Next to E-Recruiting it is used for example by CRM and the financial service solution (FS-CS, FS-PM, FS-RI). All of these modules can put their data for a person or an organization into the same tables. Depending on the installation / system environment or even within one single module the requirements for available fields and business checks as on authorization differ between kinds of business partners (e.g. in FS-CS the commission solution for the financial service sector knows external agents and internal employees which have to be treated differently). The business partner is the element to assign the logical / business role in which a person is handled by the system.
    For E-Recruiting you have 2 kinds of business partners, too. On the one and there are people being candidates and on the other hand there are branches of your company which hire people. The configuration allows you to seperate them if you need to identify anywhen which business partner is a branch and which is a candidate. So far I never tried if this is really working as there is no real use for this I never set it up. The attributes and the business checks are the same anyways.
    Hope that helps a bit to understand the context
    Best Regards
    Roman Weise
    PS: please remember that you have to maintain the branches via administrator bsp application. Using the IMG entry won't work.

Maybe you are looking for

  • [svn:fx-trunk] 15350: * More package and class level javadoc.

    Revision: 15350 Revision: 15350 Author:   [email protected] Date:     2010-04-12 13:22:21 -0700 (Mon, 12 Apr 2010) Log Message: More package and class level javadoc.  A small amount of commented   out and dead code removal, too. QE notes: Doc notes:

  • BB Pearl Missing Symbols in Internet Browser

    I am having a problem with missing symbols within the internet browser.  When I attempt to use the symbols button in the internet browser, only one page appears (no matter how many times I push it - it says page 1/1).  There is only the first page of

  • Eclipse, Wsdl2Java and Soap Header

    Hi all. I'm developing the server side of a web service, whose wsdl was given to me by a third party. The wsdl defines several operations, and in each of them the input consists of a soap:header + a soap:body. Thus, in my implementation I have to dea

  • Oh no did I AGAIN open my ibook to the hackers?

    I was assisting a Windows CE user on Usenet and posted a handful of screenshots for him. One of my screenshots perhaps gave away my ip to my ibook but I am not sure. This is not the ip address that is reported in Network Info. If serious I can remove

  • Some times Child Job with error status

    Hi, We are running some standard report periodically, this report is generationg some child jobs. Problems is that these child jobs, somtimes are failed with error status. This is happening very few times,may be 2 or thrice a month. There's no explan