While creating PO using BAPI_PO_CREATE1 vendor batch number is not comming.

Hi Friends,
I am using BAPI "    'BAPI_PO_CREATE1' to create PO in my report.
The PO's are getting created but i the vendor batch number is not found in the PO.
Where as i am passing the vendor batch number.
         bapimepoitem-vendrbatch = '2'.
          bapimepoitemx-vendrbatch = 'X'.
  CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
      poheader          = bapimepoheader
      poheaderx         = bapimepoheaderx
      memory_uncomplete = 'X'
    IMPORTING
      exppurchaseorder  = v_po_number
    TABLES
      return            = bapiret2
      poitem            = bapimepoitem
      poitemx           = bapimepoitemx
      poschedule        = bapimeposchedule
      poschedulex       = bapimeposchedulx.
    Commit the transaction
  IF v_po_number NE space.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'
      IMPORTING
        return = bapiret2_c.
  ENDIF.
Please reply urgently.
Thanks Regards,
Sandipan Jena

Hi
My answer is pure assumption.
Please check the following OSS notes
Note 758810 - BAPI_PO_CHANGE vendor batch and batch not visible
Note 1230268 - Field Vendor Batch never filled for PO BAPIs
Please take help from BASIS and SAP, before implementing the OSS note
Regards
Madhan D

Similar Messages

  • Problem while creating PO using BAPI_PO_CREATE1

    HAI TO ALL
    I AM TRYING TO CREATE PO USING BAPI
    ORDER IS SUCCESFULLY GENERATED, BUT THE CONDITIONS WHATEVER I PASS IS ARE REPEATING ,
    EVEN WE CONFIGURED DEFAULT VALUES MAINTAINED IN TRANSCTION 'OMFI" AND MAINTAINED Default Values for Purchasing FOR PARAMETER IN PARAMETER TAB IN USER PROFILE,
    HELP ME...
    REGARDS,
    SN

    Hi Sid.
    I'm having this same problems on creating PO Service. Did you solve it? How did you do that?
    I'm using a PR and the Category is 'Y', and I cant find where is the problem.
    The tables that I'm passing to the BAPI_PO_CREATE1 are:
    POITEM/ POITEMX
    POACCOUNT/ POACCOUNTX
    POSERVICES
    POSRVACCESSVALUES
    Please, if you have any idea, let me know!
    Tks a lot!
    Renata

  • Vendor batch number in stock transfer

    Hi,
    Batch management at plant level.
    When we transfer the stock from one plant to another plant, the vendor batch number is not getting updated in the receiving batch master record.
    In 303,we will send it from one plant to another plant (Stock in transit).
    In 305,we will receive it to another plant with different batch number.
    How do we know this 305 has been done for 303?
    Eg:
    303
    Material : A
    Plant:Phar1
    Batch 100
    305
    Material: A
    Plant:Phar2
    Batch :200
    How do we trace the stock in case we need to resend back to the supplier?
    Thanks
    Srini

    You are facing a classic problem. Given Batch number is unique at Plant level, to maintain the continuity, you should have the same batch number between the two plants. Any specific reason why you don't have it.
    Then if there is valid case not to have the same batch number in this scenario, then you should look at making the batch number generation external so that you can prefix/suffix or come up with a way to get the original batch number from the sending plant in the receiving plant batch number.
    Recently we had a similar requirement, so we activated batch classifiction and put the orignial batch number as one of the characterisitcs in the batch class. You can also think enabling such functionality..

  • Inspection type 01 - inspection lot creation based on vendor batch number

    Hi Guys,
    this topic has been discussed several times here, but I was not able to find a suitable answer for my question.
    I am facing the folowing requirement:
    I have activated inspection type 01 for a raw material.
    I am receiving a firs goods receipt from vendor A with vendor batch number 0001.
    The system creates its own goods receipt batch number 0546 based on internal numbering.
    A new inspection lot is created.
    I am posting a second goods receipt from vendor a with vendor batch 0001.
    The system creates a new batch number 0547 based on internal numbering.
    A new inspection lot is created.
    I do not want to get the second inspection lot, because I received vendor batch 0001 before and I am assuming it has been inspected or is in inspection.
    Option 1: Post the second goods receipt against the first internal batch number created.
    I am aware of this need at the moment, but a user is not always checking if there is an internal batch with the same vendor received before.
    Can I customize the system to create inspection lots based on the fact that the vendor batch number was received before?
    Or do I have to use an exit and some ABAP code to get the wanted result?
    Thanks for your advice in advance.

    You need to use one of the enhancements that Do-Wook has suggested.  There is no standard SAP way to suppress the inspection based on the vendor batch number.
    With the first enhancement you use the system to check for a previously received vendor batch and if one is found, then that batch number is proposed and not the next one from the numbering series.  In this case, the lot isn't created than due to the inspection lot control of the inspection type.
    With the second enhancement you check the vendor batch number and if it's been received you suppress the inspection lot creation and the stock goes right to unrestricted.
    You'll probably need to do one or the other.  Myself, I prefer the first enhancement.
    Craig

  • QE72 display vendor batch number

    HI,  
    we would like to see additional to the internal batch number the vendor batch number in the result recording screen (top alv grid).
    Currently I started to create the additional output information with imp. enhancements in  SAPFQE20.   This looks good, and I'm able to get are new line with the vendor batch number description. But I don't have any data to display for the lots.
    I checked and found that all inspection lots are stored in structure "G_INSP_LOTS" defined in RQETBI20 as BAPI2045D_IL0. But bad that this structure don't have any vendor batch number.   If I check the inspection lot this information is stored in  QALS-LICHN.
    Strange is, if I check the BADI "InspectionLot"  (objecttype BUS2045) there is attribute vendor batch defined.   Based on the numbering of the BADI BUS2045 and the defined BAPI2045D_IL0 structure it seems there is a relation but do somebody knows this relation ?
    Also function module MAP2E_QALS_TO_BAPI2045D_IL0 that is used to translat WALS information into the BADI structure don't have any hint for LICHN.
    Not sure if this is missing implementation. Could this be for such an basic field?
    Any ideas, what I can do to display the vendor batch number.
    Thanks for your hints on this topic.
    Jens

    Anyone having an idea?
    We are facing same issue.
    Material M00001 with 2 batches XYZ and ZYX.
    Batch XYZ has vendor batch set to 0123456
    Batch ZYX has vendor batch 33333333.
    Now user posts GI with batch XYZ and system automatically changes vendor batch in master record of second batch ZYX and replaces 33333333 with 0123456. 
    Do you see any logic in it?

  • MIGO field selection - vendor batch number

    I created a new movement type by copying from the standard SAP movement type 501 (GR w/o purchase order).
    When posting a GR with this movement type and a batch-managed material, the Batch field is open for entry but the Vendor Batch field (GOITEM-LICHA) is suppressed. I suppose this is because SAP does not expect you to enter any vendor-related information if you do not have a PO. And similarly if you have vendor-related information (like a vendor's batch number) you should be using a PO.
    However the business requires a Vendor Batch number to be entered in this scenario.
    Does anyone know how to make the Vendor Batch field open for input when using a specific movement type?
    I'm thinking maybe a BADI like MB_MIGO_ITEM_BADI is my only option. I've tried the MIGO field selection (OMJX) but couldn't make this work. Any input would be appreciated.
    Thanks!

    I am afraid I must confirm that, as you have already seen, it is not possible to enter a Vendor Batch (LICHA) in a goods receipt without reference to the purchase order with the movemement types 501, 511 or 561.
    There is no standard system setting or program code available which can set this entry as required or optional. This kind of requirement can only be achieved through a software modification,
    Also, please notice that although you can enter a Vendor Batch when posting a goods movement with reference to a purchase order, you cannot display it later with transaction MIGO:
    Please, kindly check the information contained under the attached note regarding this matter:
    330585 - MIGO: Vendor batch in material document display.
    As stated in this note, under the 'System response after the note is implemented' section:
    "After the attached correction instructions are implemented, the field
      can no longer be seen in the display of the material document for the
      vendor batch using Transaction MIGO. Displaying the vendor batch does
      not make much sense since it might have changed since the posting of
      the material document. The material document itself does not have the
      information of the vendor batch that was entered at that time. In the
      system, only the information of the current vendor batch exists for
      the batch."
    Sorry not having a positive answer ! =/
    Plauto

  • Use of vendor product number in shopping cart from personal template

    Hi all,
    I have the following scenario:
    We use ECC 6.0, SRM 5.0 MDM 5.5 sp6 catalog 2.0.
    In the inforecord master data in ECC we use the vendor product number (vpn). When a inforecord is created or changed, the inforecords (or changed data in the inforecord) get's replicated to SRM-MDM, just like all of the other masterdata (product, vendor and conditions).
    The vpn is included in the details of a catalog product.
    When a personal template is generated from a product in the catalog, it's saved with the vpn included.
    When the vpn changes in ECC, this number is replicated to the SRM-MDM catalog.
    So if you choose the product from the catalog after the canged vpn, the new, right vpn is used in hte shopping cart. But when you use the template that was created before the time the vpn was changed, the old vpn is used in the shopping cart and subsequently the pr and po.
    This leads to wrong delivery's.
    I've logged an oss call for this, because in my opinion this is a product default. But SAP points me on "standard design". This seems always to be the case when something difficult is asked.
    They said it can be solved with a BADI implementation. To be more specific a validation in SRM-MDM with the doc-change Badi.
    Is there some one who has experience with this kind of development and knows if this is the whight Badi of has an alternative?
    Thanks in advance!
    Best regards,
    JvE

    Hi,
    When a personal template is generated from a product in the catalog, it's saved with the vpn included.
    When the vpn changes in ECC, this number is replicated to the SRM-MDM catalog.
    So if you choose the product from the catalog after the canged vpn, the new, right vpn is used in hte shopping cart. But when *you use the template that was created before the time the vpn was changed, the old vpn is used in the shopping cart and subsequently the pr and po.
    *Solution:
    you have told that in MDM -VPN is updated from ECC
    Say for Eg : VPN  is 12345  in MDM
    you have created a shopping cart template with thie VPN : 12345 .
    you have ordered the shopping cart the VPN number will be 12345.
    After a week this VPN is updated from ECC by 12345ABC
    now you have to Delete the old shopping cart template what you have created 12345.
    You have to create a new template with VPN :12345ABC and create a  shopping cart
    How will the VPN change in the Old Template? It  is not possbile.
    It is not A product bug.
    Please try this method what I  have suggested
    Regards
    G.Ganesh Kumar

  • Vendor batch number in po

    how can i update vendor batch number for an existinf PO as  bapi_po_chanegs is not working for this requiremtn.

    If you have less number of records then you can use BDC.

  • Error while creating stock using tcode: MB1C

    Error while creating stock using tcode: MB1C
    The Error is: Check table T004F:entry G006 does not exist

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Entity Attributes are not populating while creating EO using EO wizard.

    Hi,
    I am using JDeveloper version 10.1.3.3.0.3 and E-Business suite12.1.2.
    I am facing problem while creating EO using EO wizard.
    In Entity Object Editor Entity Attributes are not populating while creating EO.
    Please help me resolve this issue.
    Thanks & Regards,
    Sagarika

    Please ensure you click on Tables and Synonyms check box and select proper schema.
    Try to select the table from the list after this instead of writing as in 10.1.3 when we write table name it automatically selects from the list if it exists in the list.
    Thanks
    AJ

  • Scrollbar appearing while creating pdf using AlivePDF

    Hi,
    I am facing a problem while creating pdf using AlivePDF.
    I have a VBox on which I am adding multiple pages. If the content overflows it shows scrollbar. All this is working fine.
    [PHP]
    <mx:VBox x="0" y="80" width="705" height="560" id="content"></mx:VBox>
    [/PHP]
    When I create the pdf using the following code it shows scrollbar in  generated pdf (attached screenshot) while I want all the content without  scrollbar
    [PHP]
    var pg:DisplayObject;
    pg = content.getChildAt(i);
    var pdf:PDF;
    pdf = new PDF (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
    pdf.setDisplayMode(Display.FULL_WIDTH);
    pdf.addPage();
    pdf.addImage(pg, new Resize(Mode.FIT_TO_PAGE, Position.CENTERED ),0, 0, 0, 0, 0, 1,true,'PNG',100);
    [/PHP]
    Please suggest what changes should I make to fix this.

    If the report didn't change, then perhaps the data did. Check
    to make sure the data being supplied to the report is as expected.
    I have run into mysterious errors where an expected value was of
    the wrong type or a required value was now blank. It is also
    possible to have existing logical errors in an iif() or other
    dynamic evaluation expression that was not previously examined;
    until now. So, is there any unexpected or exceptional data the
    report cannot handle?

  • Problem creating basic views while creating materials using idocs?

    hello,
    I am facing an issue while creating materials using idocs. The problem is that the basic view does not get created whereas other views are present. The function module used is idoc_input_matma01 and the basic idoc type is MATMAS03.
    Looking for help. Thank you

    Hi Madhu,
    Actually i recieve an idoc from PI containing data required for cretion of the material via an idoc. This idoc is then processed to create the required material.
    The material gets created with appropiate data in various tables(mara, makt) but when we view material in mm03 we cant see the basic data views.

  • Problem while creating assets using BAPI

    Use table enhancement BAPI_TE_ANLU
    Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
    Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.

    Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
    Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
    Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
    The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
    Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
    Regards,
    Shyam

  • Issue on condition value after creating PO using bapi_po_create1

    Hi ,
    I am passing condition value as 45.55  to Create PO using bapi_po_create1,
    but after Creating PO, But Condition Value reflecting ME23N as   4,555.00.
    Kindly Provide any solution if you have

    Hi ,
    I am passing condition value as 45.55  to Create PO using bapi_po_create1,
    but after Creating PO, But Condition Value reflecting ME23N as   4,555.00.
    Kindly Provide any solution if you have

Maybe you are looking for

  • Maybe bug : ListCollectionView.addAll with a filter function

    Hi, I think I found a bug in the flex SDK. I've checked in JIRA and it seems that it is not yet reported. This simple code raise a "out of bouds exception" (flex SDK 4.1) : var list:ArrayCollection = new ArrayCollection(); list.filterFunction = filte

  • Apple Stockholder discount for new computer purchase

    I want to purchase a new iMac to replace an old G5. I am a stockholder and wonder if Apple offers any discount to stockholders when ordering a new Apple computer?

  • Printing from I photo trouble

    i cannot print from i photo using an HP CP2025n printer....the error message displayed reads 'I photo quit unexpextedly while using HPprintsettings plug ins' it prints perfectly fine otherwise.....has anybody got any helpful suggestions please?

  • Why is iTunes not showing updates for my iPod Touch 1G

    I have an iPod Toch 1G and i want to upgrade it to 3.3.1, but when i click on Check For Updates, it says "The version of iPod software(2.2.1) is the current version". It also says that it will automatically check for updates on 9/25/11. Please help m

  • How to use my Canon MP540 with Lion Mountain

    Hello i'm on Mountan Lion and i want to use my Printer, Canon MP540 but she is not so old and the system tell me.; We don't find any driver for your printer. Effectively only the 530 and the 560 are supported... Do you have any idea to work withe my