Auto assignment of batch no

Hi gurus,
ours is mto discrete manufacturing . in this we have to assign the batch no and it carries till the end of the process.
my client requirement is they want the batch no should come automatically for all the grades while creating the production order. it should automatically take the next batch no. how to do this please help. any further onformation will be provided if asked.
regards
kumar

Dear,
First take help from ABAP person you need to apply your logic
Include ZXVBZU01
data : lv_newcharg type dfbatch-charg,
lv_no type c length 10.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'BATCH_CLT'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = lv_no
QUANTITY =
RETURNCODE =
EXCEPTIONS
CALL FUNCTION 'NUMBER_GET_NEXT'
  EXPORTING
    NR_RANGE_NR                   = '01'
    OBJECT                        = 'BATCH_CLT'
  QUANTITY                      = '1'
  SUBOBJECT                     = ' '
  TOYEAR                        = '0000'
  IGNORE_BUFFER                 = ' '
Regards,
R.Brahmankar

Similar Messages

  • Quota arrangement - winning contract is not auto assign in SC

    My Problem: Winning contract is not auto assign to Shopping cart
    I created a Quota Arrangement (QA). It contains 2
    contracts, for example in line item 1, contain Contract with Supplier
    'A', with target percentage of 60%. In line item 2, contain Contract with
    Supplier 'B', with target percentage of 40%. I did not specify any quotabase quantity.
    For your info, the contract for Supplier 'A" is a Purchasing Contract,
    with target value of 80 (currency Malaysian Ringgit). Contract for
    Supplier 'B' has target value of 20 (currency Malaysian Ringgit). When Icreate a Shopping Cart, with quantity 5 (each-EA) and price per unit is
    2
    (Malaysian Ringgit), total is MYR10. When I go to Source of Supply tab,
    the system showed 2 suppliers from the 2 contracts. It did not
    automatically assigned to the winning contract. We still have to choose
    which contract to be assigned. I created another SC after that until theContract exceeded quantity, but the system does not proposed winning
    contract automatically. Please help.
    Cheers
    AIN

    yes, the contract have company code

  • Portal Master-detail form how to auto assign detail record sequence number

    Portal Master-detail form how to auto assign detail record sequence number.Please help me?

    You can just read the following section
    Can I specify a sequence number generator as the default value for a form column?
    Yes. Enter the following in the "default value" field for the column:
    #<schema name>.<sequence name>.nextval
    where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
    For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
    #SCOTT.CUSTOMER_SEQ.NEXTVAL
    same way you can do for master - detail form.
    for more information on forms please refer the following URL.
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    hope it helps.

  • Auto creation of Batch master data when external batch no entered in PR

    Dear All,
    At persent we can auto create batches at production order creation level, Goods receipt level.
    In same way how we can achive auto creation of Batch master data at Purchase Requisition level.
    Regards,
    Manoj

    There is no auto-creation of batches that are entered in ME51N. SAP issues message ME178 telling you that the batch entered does not exist.
    You have to maintain the batch in MSC1N first, then you can enter it in the PR.

  • Auto-assign LPNs when performing receipts in Oracle WMS

    I am wondering if there is a way to auto assign LPNs to a receipt.
    Example:
    I order 2700 widgets
    900 widgets = 1 Pallet
    When the Order arrives; using the Mobile Devices; do I have to receive each pallet individually or can I perform one receipt and have Oracle configured to auto-assign the LPNs?
    We are running on 11.5.10.

    Are you open to using ASNs. If an ASN is created for a the PO, then you can have the material packed in the way you need it to be. The LPNs structure will be retained on receipt.
    Amit

  • Temporary bypass of auto assignment of Inspection type

    I have checked 'auto assignment' in QM master data view.  My goods receipts are generating inspection lots with 01 inspection type.  This is all good.  Is it possible to trick the system not to assign the inspection type in certain cases even though 'auto assignment ' is setup ?  If this is possible I would like to use this to model an ad-hoc first article inspection as required by my client.

    Hello FF,
    I tested your suggestion of creaing multiple plans and tricking system not to assign any inspection plan.  It worked. I have multiple inspection plans for Prelim series( say 501 usage) and one '01' for normal incoming quality inspection.  When a Vendor calls the buyer and cautions that next shipment has some process changes/tool changes/new raw material introdcued etc., some at Client site has to modify the QIR to put in Prelim status.  At the time of GR, system gets confused on which 501 plan to assign and leaves the assignment open in the insp. lot.  Then manually QI inspector has to assign the plan knowing the vendor's caution.  Again, Gagesh question of how change being communicated is not anwered here.  But I may propose an enhancement in the PO screen( a check box may be) that buyer puts in after receiving communication from Vendor.  This flag may run a program to put the QIR status to Prelim status.  Lets see how it goes.  My question is answered.  Thanks to you all for inciteful help.  Points goes to FF for the 'Idea'.

  • ISE - auto assign a device to group upon device registration

    Hi,
    Is it possible to auto assign a device to group upon device registration?
    Typically in the registration portal, once "Register" button is clicked, the MAC address is put into "Registered Device" group, but let's say I want it to be put in different groups depending on the AD group? (Let's say when if Staff A register the device, the device automatically put into group A, Staff B to group B, and so forth)
    Thanks

    If you create a portal Specific for device registration, you can define to which ID groups will belong the registered endpoints.
    I didn't tried this, but it might be possible to have a different portal for registration based on AD group, if you chain it after CWA or Dot1x. That would make an additional redirection though.

  • Auto-assigned IP address on an open network

    Hi Mac users,
    I guess somebody else has already had that problem (or I would really be the unluckiest person in the mac world), but I can't find any solution to it, so PLEASE help me!
    I have had my MBP for 6 months, it came with Leopard, and in November I upgraded to Snow Leopard (with someone else's CD that I can't get back do please don't tell me to do a clean Snow Leopard install). I'am not really a Mac pro cause I used to be a Windows user (yeah I know) and I never really got any problems with my Mac so please explain clearly if you have a solution for me!
    Here's my problem :
    I need to access an open network at my school. You're supposed to connect to this network without entering any weep or pa key, than you get to a page where you login with your school information. Then you get full internet access (web, skype,…)
    The thing is that I can't event connect to this network… it says "Airport has an auto-assigned IP address 169.254.143.75 and won't be able to connect to the internet" (my computer is in french so my translation may vary from the english message). This occurs with Automatic DHCP for IPv4, and whether IPv6 is in Automatic or in Disabled setting.
    The exact same thing happens whan I connect to the network using the Ethernet cable... I get the auto-assigned IP address and all...
    Of course, I tried disabling and enabling Airport, and renewing the DHCP, but I always get this auto-assigned IP address.
    I know the problem doesn't come from the hardware because I can connect without any problem to my wireless network at home.
    I am using the 10.6.2 version of Mac OS and I already checked that all the available updates are installed.
    I had a similar problem before upgrading to Snow Leopard : I could connect once to this open network, but then if I closed the lid of the computer, and then reopen it after a while, it wouldn't connect and I had to restart it entirely...
    One of my friends has a Mac running with Leopard, and he has no problem connecting to the network, and neither do the windows user. I don't think it's a problem with the number of connections available on the network because I can NEVER connect to it…
    Please help me!!! I'm hoping a Mac genius pops out of the computer and tells me what to do

    Bonjour
    The weirdest thing is that wired ethernet is not working, not getting an IP address. This may be some kind f incompatibility with the hardware but I doubt it.
    Did you check in Airport and Ethernet settings that 802.1X is not enabled and that Ethernet negociation is "Automatiquement".
    Also, you can completely wipe network profiles by removing those files from /Library/Preferences/SystemConfiguration/ :
    NetworkInterfaces.plist
    com.apple.network.identification.plist
    com.apple.airport.preferences.plist
    Then reboot

  • Auto assignmrnt of batch no. in MIGO

    dear friends,
    I want to assign batch no. of vender provided materials automatically  to the receiving material in MIGO.
    I provide material to vender with batchs. In MIGO while doing GRN, I select the provided materials batches by batch  determination. I want to split incoming material  quantity as per batch sizes of provided material and assign their batch nos.automatically.
    Please help me.
    Thanks!

    Hi,
    Create Batch search strategy condition records in MBC1 tranaction for the combination of material,movement type etc as per your wish.
    Then make no of splits also as per the requirement while maintaining the condition records.
    You can also selct the selection rule if you want. Then the batch numbers will be automatically assigned.
    Thanks and regards
    Murugesan

  • Auto Assignment of Cost Center & GL in PR

    Hi Experts,
    Reqt is -
    Auto assignment of Cost center & GL codes in Purchase Requisition based on Material type
    i search SDN & then i configured OME9, OMGO & OBYC.
    But still its not picking Cost center in PR.
    Could you please suggest..what m i missing??
    Regards,
    Jackie

    Hi,
    Check the setting and assignment in following t.codes
    1.OME9,
    2.OMGO
    3. OBYC
    4.OKB9
    For more check the link:
    http://www.bluemarlinsys.com/ns/0603-03.asp
    Kuber

  • Auto Assigned distribution rule to exchange gain/loss acct in Banking

    Hi All,
    I have a customer that have this requirement. They wanted the exchange gain/loss account generated by Incoming payment or Outgoing payment to be auto assign with profit center if it is defined at the payment screen.
    The result now is, even though you have assign the distribution rule on each reconciled invoice during payment, double entries generated will not have any distribution rule assigned even though it involve exchange gain/loss that is P&L account.
    Thanks in advance.
    Regards,
    MH

    Hi Kamlesh,
    Thanks for the reply. However, we can't assigned the distribution rule at Chart of account as the incoming or outgoing payment may involve different division each time thus the exchange gain/loss account should be assign to respective division. Thanks.
    Regards,
    MH

  • Auto assigning destinations

    Hello all,
         This is my dilemma; I have a PDF file that is fairly large (over 150 pages) and I need them to have a destination on each page where the name of those destinations are the page number itself. Now I could go through each page and set the destination myself but I have 7 PDF files to do this for that are varying lengths. Is there a plug-in or built-in function that would auto assign a destination per page that was the number of that page? I haven't been able to find anything anywhere as of yet.  Just trying to see if I could save myself some trouble and time by not hand doing this. Thanks in advance for any help/assistance anyone can give.

    Harucho,
    Bernd's "file.pdf#page=3" is alluding to PDF Open Parameters.
    These have been around for a while.
    See Adobe Developer Knowledgebase document 52852 to view the versions listing.
    http://support.adobe.com/devsup/devsup.nsf/docs/52852.htm
    Acrobat 9 - Parameters for Opening PDF Files
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Acrobat 8.1 - Parameters for Opening PDF Files
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Acrobat 7.05 - PDF Open Parameters
    http://www.adobe.com/devnet/acrobat/pdfs/PDFOpenParameters.pdf
    Acrobat 7.0 - PDF Open Parameters
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    ~ Related Info - UNC/URL/on local machine Info- Good to Know ~
    Permanent Link: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=317300
    http://kb2.adobe.com/cps/317/317300.html
    Permanent Link: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=326332
    http://kb2.adobe.com/cps/326/326332.html
    Using the HTML embed Tag to Display a PDF on Your Web Page
    http://blogs.adobe.com/pdfdevjunkie/using_the_html_embed_tag_to_di.html
    Be well...

  • Task Auto-Assignment in PJM (turning it off)

    My client is looking to turn off Task Auto-Assignment in Project Manufacturing after a restructure of the Project WBS / FBS. It will no longer be needed.
    I was wondering if anyone has done this. What are the steps? What are the concerns of doing this (data corruption, conversion, etc...)? Release 11.5.10.2
    I do know that one step in order to disable task auto-assignment is to change Project Control in Project Organization Parameters from Project to Task. Anything I am missing? When I do this and then try to assign the Project and Task to the Job (work order) it will not save. It gives me an error (Error: Task Auto Assignment Rules do not exist for the Project Assigned to this job). The work around is to turn task auto-assignment back on (Project Control field), assign some rule to the project in Project Parameters, and then turn the task auto-asignment back off. This then allows me to "save" the project and task to the Job (work order), but I would never be able to roll this out in a Production environment.
    Please help. Thanks in advance!
    Andy

    Hi
    I haven't tested it, but may suggest some considerations.
    All inventory and WIP transactions need to be costed and interfaced to Projects by cost collector before you change the setup of the project control in the organization.
    If you use Order Management, you might need to insert task number to any open sale order line.
    If you have open requisitions and purchase orders, they also need to get task number on the distribution lines. That is true even if the items were already received but not yet billed.
    On hand items in Inventory project locators, need to be transferred into project and tasks locators.
    Any planned work order, even if not yet released, need to get the task number.
    Based on the quantity of existing locators, jobs, POs and sale order, you might want to consider if it would not be easier to setup a new inventory organization with project and task control, and then move all PJM activity from existing organization into the new one.
    Dina

  • Problems with multi-account assignment in batch-input program

    Hi everybody!
    I'll create purchase orders with multi-account assignment via batch input.
    When processing dynpro SAPMM06E 0113 I get the message:
    "Batch-Input data for dynpro SAPMM06E 0113 are not available".
    But all data are already filled in the accounting fields. 
    There is no way to go back to the position overview.
    Here you can see the batch input coding of the multi-account assingment:
         PERFORM dynpro USING: 'X' 'SAPMM06E'        '0113',
                                ' ' 'BDC_CURSOR'      'EKKN-TWRKZ',
                                ' ' 'BDC_OKCODE'      '/00',
                                ' ' 'EKPO-WEPOS'      'X',
                                ' ' 'EKPO-WEUNB'      'X',
                                ' ' 'EKPO-VRTKZ'      wa_ekko_ekpo-vrtkz,
                                ' ' 'EKPO-TWRKZ'      wa_ekko_ekpo-twrkz.
          PERFORM dynpro USING: ' ' 'BDC_CURSOR'      'EKKN-ANLN1(14)',
                                ' ' 'BDC_OKCODE'      '/00',
                                ' ' 'EKPO-WEPOS'      'X',
                                ' ' 'EKPO-WEUNB'      'X',
                                ' ' 'RM06E-MKNTM(14)'  ekkn_menge2,
                                ' ' 'EKKN-ANLN1(14)'   wa_ekko_ekpo-anln1,
                                ' ' 'EKKN-ABLAD(14)'   wa_ekko_ekpo-ablad,
                                ' ' 'EKKN-WEMPF(14)'   wa_ekko_ekpo-wempf.
                               ' ' 'BDC_SUBSCR'      'SAPLKACB'.
    *(this is repeated for every accounting position)
         PERFORM dynpro USING: ' ' 'BDC_CURSOR'      'EKPO-VRTKZ',
                               ' ' 'BDC_OKCODE'      '=AB',
                               ' ' 'EKPO-WEPOS'      'X',
                               ' ' 'EKPO-WEUNB'      'X'.
    Regards,
    Anke
    Message was edited by:
            Anke Chittka

    Hi,
          1 .First record properly depen upon ur requirment,
          2. Test ur recorded code
          3. Note all OK-Code ( when u press any button) * this is important
          4. After that split ur recorded coding dep ur requirment (if u know all OK-Code u can split the recorded coding)
          5. call ur splided coding in ur prg.
    i am having coding for PO but this is Dep my requirment

  • How to auto assign a number to some data using PL/SQL

    Hi,
    Assume that i have a few lines of data...
    How do i auto assign number to the data without hardcoding it?
    In this instance, i want p_id to be auto-generate...
    create or replace procedure insert_file
    p_id number,
    p_file_type varchar2,
    p_file_name varchar2
    )as
    geor MDSYS.SDO_GEORASTER;
    begin
    insert into nyp_images values( p_id, p_file_type, sdo_geor.init('NYP_IMAGES_RDT') );
    select image into geor from nyp_images where image_id = p_id for update;
    sdo_geor.importFrom(geor, NULL, p_file_type, 'file', p_file_name);
    update nyp_images set image = geor Where image_id = p_id;
    end insert_file;
    Thanks and regards,
    Esther

    In this case you could slightly change your procedure to
    create or replace procedure insert_file (
      p_file_type     varchar2,
      p_file_name     varchar2,
      p_id        out number
      )as
      geor MDSYS.SDO_GEORASTER;
    begin
      insert into nyp_images values( your_seq.nextval, p_file_type, sdo_geor.init('NYP_IMAGES_RDT') )
         returning image_id into p_id;
      select image into geor from nyp_images where image_id = p_id for update;
      sdo_geor.importFrom(geor, NULL, p_file_type, 'file', p_file_name);
      update nyp_images set image = geor Where image_id = p_id;
    end insert_file;I highly reccommend you to take classes in this SQL and PL/SQL stuff or look for some external ressources that can guide you.

Maybe you are looking for

  • How to assign a default value to a SelectOneChoice

    Hi, I'm working with ADF 11g: WebLogic 10.3 and JDeveloper 11.1.1.3.0. I wonder how to assign a default value to a SelectOneChoice. In a ViewObject I have a field defined as Combo Box. Then drawing the combo in my jspx page: +<af:selectOneChoice valu

  • Need table or FM for PO number in SO lineitems

    Hi guys,                I need table name or FM for salesorder lineitem PO number(in order data tab).I checked in VBKD table, but our requirement is- some sales order contains different PO number in header level and  in line item PO number.Users will

  • Hi loading last 2 months data using abap routine

    we are planning to write a routine in infopackage level, using the option 6-ABAP routine, to select the last 2 month data , we have the time characteristics 0CALMONTH, At present we managing the load by manually changing the selection for last 2 mont

  • Different rollback segment used. why?

    Hi. I am trying to use rollback segment RB6 in a delete process in a stored procedure using SET TRANSACTION USE ROLLBACK SEGMENT RB6; However, when the procedure is called and performed, an error is thrown: ORA-01562: failed to extend rollback segmen

  • Won't connect to I tunes from app store

    I pad app store won't connect to I tunes.