BAPI_BATCH_CREATE: Vendor (old)Batch No.

When I execute this in unit test I can succesfully post the new batch to MCH1 along with the old Vendor Batch Num, exported via BAPIBATCHATT-vendrbatch. I see the old number in MCH1vendbatch,
However, in my code I seem to be having an issue transgerring the vendbatch via the FM. I see the value being exported while tracing. No errors are returned, the matnr and batch post. They can be seen in MCH1...but no vendbatch?
              Thank-You.

Hi Friend,
Please try with VB_CREATE_BATCH.  I think it will solve your problem.
BAPI_BATCH_CREATE is not working properly in our system also, so we have used that one.
Regards
Krishnendu

Similar Messages

  • Issue in deleting the old batches in SARA

    Hi,
    I need to delete few old batches inorder to convert the batch from plant level to material level. I tried tcode SARA. I have run the write portion and system shows the number of objects selected in the job log. I can see the archive sessions also in management session . The job status also is green.
    But when I run the delete portion, where I have to do the archive selection before executing, Iam not finding any files mentioned here for selection
    How can I solve this issue. How to bring the archive files to this archive selection tab?
    Appreciate an earliy response
    Regards
    Prathib

    Hi Jurgen,
    Thanks a lot for the inputs. It helped me to go ahead further. I checked the spool list and could see an error. I cleared it. Now I can see the archive selection file. I did the delete run also. The batch is deleted from table MCHB. But it still exist in table MCHA.
    The deletion flag is set at material level. Why the archiving is not removing batch from MCHA table?
    Thanks & Regards
    Prathib

  • Control of Change of Vendor in Batch Master

    Hi Experts,
    We have a scenario wherein we want that when a batch is recieved from EG Vendor, the batch master should get populated with Vendor number (available in standard SAP) and when we do an IG recipet i.e when we transfer the batch from one company code to another or one plant to another, the vendor number shoudln t get changed (i.e. it should remain that of EG vendor and not get changed to that of IG vendor on IG reciept).
    Thanks in anticipation,
    Arun
    Edited by: Arun Mann on Mar 25, 2009 2:11 PM

    you may have to code an userexit to keep the first value.
    alternative add the original vendor as a charcteristic to your batch classification.

  • Old Batch number is picking when GR with Purchase Order

    Hi All
    When I am doing the Goods Receipt with Puchase Order for the batch managed material Old Batch number is picking automatically,
    My system configuration for the batch number assignment is automatic.Can you help me why this is happening and what needs to be done to avoid existing batch pickup when Gr with PO
    Thanks in advance
    Best Regards
    Katta

    ask the user why he enters the * in the batch field. the star carries out batch determination, which makes sense for goods issues.
    Maybe you user just got told to do this without beeing told when he shall do this.
    if you dont want the values entered by a user, then you have to code this in a user exit.
    For me it is more an education problem than a SAP problem.
    Users should understand what they are doing, restriction is the very last step for me in SAP

  • Wiping out Old Batch Characteristics in MSC2N

    Hi,
          I have a requirement where I have to do a Material-To-Material Transfer (VLMOVE) and update the Batch Characteristics in a Custom Inbound Posting Program. Now, I am able to update the batch Characteristics for the new Material with the Characteristic Values received in the Inbound IDoc.
          However, I am unable to wipe out (Clear) all the Old Batch Characteristics for the Old material. Can somebody give me an idea as to how exactly do we go about clearing all the Batch Characteristics for a Material - Batch Number in MSC2N Transaction?
    Thanks and Regards,
    Venkat.

    Hi Konduri Venkata,
    Did you try below FMs ??
    BAPI_BATCH_CHANGE
    BAPI_OBJCL_CHANGE
    also search for BAPI_BATCH*
    u will get other bapis from it...
    OR else...
    at last u can have one more option is LSMW...
    because MSC2N is SAP Njoy Tcode so it wont allow BDC...
    Hope it will solve ur problem
    Reward points if useful...
    Thanks & Regards
    ilesh 24x7

  • Is it possible change the vendor old addres while reprinting check in F110

    Hi Friends
    Is it possible change the vendor old address while reprinting check in F110?
    My user first he run the APP and he print the check with wrong address, after that he realized, he had taken print with old address.
    Now he want reprint the check after changing the new address in vendor master.
    As per my knowledge, once print the check it will store in REGUH table. if we change address at vendor level it will store at LFA1 Table.
    So Is it possible change the vendor old address while reprinting check in F110.
    Can  any body please  give me suggestion regarding on the same
    Thank You
    Regards
    vamsi

    Hi Vamsi,
    you are right, it is not possinble to get new address with reprint check.
    Along with clearing document system updates vendor details and line item detais in REGUH / REGUP tables. when user get print, system takes data from REGUH and print details.
    In your situation cancel check and reset clear documetn and again execute payment, then system fetch new address.
    Regards,
    Viswa

  • PMW/ACH Vendor Payments - Batch Header Record (5) not in file

    We're trying to get PMW/ACH vendor payments up and running, and thought we were about ready to send a test file to the bank, but I've discovered we have no batch header (record type 5) in the file?
    We're configured to use the PMW.  I have checked and rechecked our configuration, but must be missing something?  We have payment methods and banks configured.  Variants defined and bank/master data set up on a few vendors for testing. Everything else seems to be working fine. A small test via F110 selects these vendors into the file for payment, prints advices, and posts FI documents in SAP properly. I have record types 1, 6, 8, and 9 in the file...but no 5 (Batch Header).
    Any guidance would be greatly appreciated.
    Thanks.
    Lisa Tanner

    Record 5 is defined by the Format Supplement in FBZP, Payment method/country. Here you will find 3 supplements CTX, CCD and PPD.

  • Creation of Vendors by batch jobs:  Bypass the 'confirmation' process

    Hello,
    Need your kind suggestions please. When we create a vendor master data it's a two step process. In the first place we create and save it. In the second step a different user needs to log in and confirm the same before the vendor gets active in the system.
    Now, our client usually have to create a huge load of vendors on a regular basis. So they want to automate this process by creating the vendors using a background job. Since the vendors would be created by the batch job, security issues would automatically be taken care of.
    Therefore they want to avoid the second step of 'confirming' the vendors to get them 'active' in the system.
    Is it possible to bypass the 'confirm' procedure so that no one has to log in and keep confirming the huge number of vendors that would need to be created?
    Please advice. if you need more information, please let me know and I would try to answer as far as my knowledge goes.
    Regards,
    Suvarghya

    Hi,
    Go to the following path,
    IMG >> Financial Accounting >> Accounts Recievables and Accounts Payable >> Vendor Accounts >> Master Data >> Preparations for Creating Vendor Master Data >> Define sensitive Fields for Dual Controls (Vendors).
    Click that activity, and delete all the fields that exists which makes it not necessary to confirm any of the vendors when they are created/made a change.
    Good Luck,
    SAP Solutioning

  • Vendor wise Batch No

    Dear All,
    I am bit confised because of same batch no for same material by different Material No.
    I have received one batch no say 1234 having material No ABC from vendor 'X'.
    Next time I have received same batch no 1234 having same matl no ABC but different vendor 'Y'.
    I can see the cumulative stock of material no ABC under batch  no 1234.
    While doing mb1b I am using option F4  in batch  batches for Vendor showing me only one vendor 'Y' which is the latest one.
    I want to see diiferent vendors for same batch .
    In doubt pls revert
    Regards
    Gitesh

    Dear Gitesh,
    You can not seggregate batches as per vendor....It will always display the latest vendor.
    What you can do is to avoid this is:
    Under batch itsef give some unique identification which bifurcates the batches as per vendor..e.g.
    Batch 123 supplied by Vendor "X"  give it 123-1
    Batch 123 supplied by Vendor "Y"  give it 123-2
    Hope this helps.
    Utsav

  • Submit RFBIKR00 Vendor Master Batch Creation

    Hi All,
    Which field do I use for "Search Term 2", the "Notes" field of the fax number field in the XK01 if I am using this RFBIKR00 program (e.g LFB1-LNRZE is for Head Office)?
    Thanks.

    Hi,
    I create Vendors in first step and have written another LSMW with BDC recording to update these 2 fields(Search term 2 & Notes for communication like fax etc) in step2.
    I could'nt find any appropriate field in the LSMW.
    Thanks,
    Bhaskar.

  • Do we have function to mix old batch when stock transfer?

    Dear Guru,
    I have a requirement as detail below.
    - We have storage location 0001 and 0002.
    - At storage location: 0001 has material code: 30001 as batch: BBB
    - At storage location: 0002 has material code: 30001 as batch: AAA
    - We would like to move stock from Sloc: 0001 to 0002 as mix batch AAA + BBB to new batch: CCC.
    Is it possible to post only one time?
    Now we have to stock transfer from Sloc: 0001 to 0002 and then transfer posting (Batch to Batch).
    Please kindly advice. Thank you

    carry out MB1b and mtype 309 and change the receiving batch to same number
    suresh

  • QA11 Return Delivey quantity to Vendor ( Inbound Delivey Batch Split - PO)

    Dear all
    We have batch management & QM module active for Purchased item.
    On Goods Receipt stock is posted to quality inspection and creates inspection lot.
    Return Delivery Qty. to Vendor as below:-
    Step1:- Tcode QA11
           Entered Inspection Lot number and Press Enter key.
    STEP2:- Defects Tab             - entered UD as rejected and
    Inspection lot stock tab - entered quantity in the Return Delivery field
    Then press enter
    STEP3:- System displays the popup screen to input Purchase order and item.
    Then click on SAVE Button I got the below error message
    error message:
    19,480 KG Incorrect posting back to vendor,
    The batch you entered XXXXX791 does not match batch YYYY770 in the PO.

    Hai,
    U have to give the batch number manually i.e yyyy770.
    regards,
    BSK

  • Partner Bank type (PBT) need to be updated in Old Vendor open line items.

    Hi all,
    We have implemented PBT functionality in our client. We have some challenges at the time of payment run (F110). Some of the line items where PBT not updated i.e. old open items ( Before implement PBT) not picking for payment. Hence, it is cause short or over payment to vendor.
    Can some one tell me is there program for update PBT in vendor old line items ( those are posted before implementation)
    Thanks in advance.
    Thanks & Regards,
    Y.Kiran Babu.

    Hi,
    There is no standared programs in the system to update data into tables.
    first it is not recomondable to updated line item missing information.
    best practice is download all old open items, and upload with PBT through BDC.
    Work around solution (but not recomonded) update BSIK - BVTYP with help of ABAPer.
    By using ABAP Quarry technical person can able to update data into tables.
    regards
    Viswa

  • Cannot delete old sessions from SM35 - Batch Input...

    Cannot delete old sessions from SM35 - Batch Input...                
    We have an issue, we are trying to delete old batch input sessions via SM35 and no
    matter how hard we try we cannot get rid of them. They are still in status "In Process" but they are status incorrect.
    Those sessions have long finished and some are more than 5 years old.
    We have tried running rsdbcreo and RSBDC_REORG but it only returns with
    Temse Error, running SP12 does not list any inconsistencies. Basically we want all jobs in SM35 that ran this year only available in the SM35 queue, we have sessions that have run from year 2004 to 2008 we wish to
    delete.
    Anybody experience anything similar or have any advice, sorry this is an environment that i have inherited and wish to cleanup.
    We have checked the following notes 706478,76422,706478,76422 and many more.
    Thanks
    Suleman

    When you try to delete, you will be asked whether you want to delete logs too.
    Here try with 'No'.
    hope this helps

  • LSMW update vendor account just if the actual (old) is in the txt file

    I want to update the vendor account but just if it is the same I have in the txt file.
    My txt file is the fllowing for example:
    Vendor - Old Account - New Account
    A2
    A123
    A321
    A1
    A133
    B321
    A3
    A144
    C321
    So, for each vendor if the actual bank account number is (old account in the file) replace the actual (old account) with the new account.
    In the CODE text for LSMW (check my attach) I have this:
    IF FK02A-BANKN_01 = CTAS-BANKN. FK02A-BANKN_01 = CTAS-BANKNNUEVO. ENDIF.
    Where:
    FK02A-BANKN_01 is the FK02 text for vendor account
    CTAS-BANKN is in my file and structure defined the OLD ACCOUNT
    CTAS-BANKNUEVO in my file and structure defined the NEW ACCOUNT (the one should be now)
    But it is not replacing, if i check converted data, this field is empty. So the if is not working. Ideas?
    I changed it by
    FK02A-BANKN_01 = CTAS-BANKN
    or
    FK02A-BANKN_01 = CTAS-BANKNNUEVO
    and it works, but put the old or the new code of course, not doing the comparation with the old and replacing with the new.

    exact, similar to what I showed and described in my blog LSMW Long text load by Direct Input method
    and you must not forget that the account in the database is stored with leading zeros in case of numeric account and less than 10 long, so there is another potential risk that it wont match without doing an extra conversion of your source field content.

Maybe you are looking for