PR creation through upload.

Hi,
  I have created a batch upload program to create PR in me51.
the following problems i am facing.
1> for each line item my program is creating a new pr. i am not able to do any looping there to run this. i guess my bdc is wrong or what.?? help.(i am running counter also)
2> I am not able to catch , i mean to display the pr no. which is created there.
3> other thing i want to know that i want to call tcode me51n after me51 to include certain customized portion. can i do that??
please help.
any sample code or tips will be helpful.

Hi,
When you do a recording for your BDC; try to create multiple line items in a PR.
You will understand then how to handle multiple line items.
You will have to make use of step loop.
There will be fields like EBAN-MATNR(01), EBAN-MATNR(02) in your recording.
So the (01) (02) is for the step-loop. This is because of the table control used to add line items.
So incase you want to pass multiple items then your FNAM field in BDCDATA should contain the corresponding field with the step-loop value.
Instead of BDC why not go for a BAPI.
The BAPI 'BAPI_REQUISITION_CREATE' is used to create the purchase requistion. It would be more easier.
Also handling ME51N via BDC will be difficult because of the OOPs concepts used.
Regards,
Ankur Parab

Similar Messages

  • Automatic Asset creation through Project settlement

    Dear All,
    We have one issues where in AS02 AUC Asset quantity is in display mode still we can find the quantity there.
    Can any body help me about the Process of Auto Asset creation through Project settlement.
    I need to know how system calculate the Quantity from the Project settlement. if such type of Process exist in SAP
    Thanks
    Abhijeet
    Edited by: Abhijeet  Patil on Oct 5, 2011 3:05 PM
    Edited by: Abhijeet  Patil on Oct 5, 2011 3:05 PM

    Hi,
    There is process in SAP where we can create AuC from Projects. We need to have an investement profile set up and the same needs to be used in the project. You will have the details in SAP Help documnetation for this.
    Regards
    Sreekanth

  • Idoc Generation after Purchase Order Creation through trading contract.

    Hi All,
    When a Purchase Order is created via trading contract, I need to generate an Idoc and pass details of the Purchase Order created to the Partner System.
    Can anyone suggest any Function module or user exit which gets called while Purchase Order creation through trading contract, so that I can fill the Idoc with necessary details of the Purchase Order and send that to the Partner System?
    Thanks in advance.

    Hi Tejas,
    I do not know about Trading Contract but what all I can say it that Check if Change pointers are getting written Once the PO has been created, If "Yes" then probably you do not have to do anything for craetion of Purchanse Order. You can use RBDMIDOC Program to create IDOCs from change pointers.
    Refer [this|http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm] for more information on change pointers.
    Regards
    Shital

  • Uploading in internal table through upload function

    Hi friends,
                  I am facing problem while uploading a data from flat file. It is in text format. data writen in file do not follows tabs instead of it there is a spaces between two words in the row.
                 While uploading through upload FM the data is fetch by the first field only (it takes whole row as a string).
    Thanks & Regards,
    Himanshu

    Hi,
    If u are using GUI_UPLOAD, then just use the separator paramter (HAS_FIELD_SEPARATOR) = <Value range below> (In ur case '  ' two spaces)
    Description
    Specifies if the fields in the file are separated by a tab. This is necessary if the structure passed contains several components. CR/LF occurs instead of a tab after the last field of a row.
    Value range
    'X': Fields are separated by tabs.
    SPACE: Fields are not separated by tabs. In this case, the table must contain either only one single column or all columns must be contained in the file in their full length.
    Regards
    Shiva

  • Quotation creation through DP81 Error related to Material maintain Inquiry

    Dear All,
    This is related to Quotation creation through DP81.I have maintain A DIP profile and as per my Easy Cost Planning (ECP) in Project System it is capturing in sales price in DP81.Please note that I have maintain three (3) line item in the sales Inquiry.Based on that 3 line item we have maintain three different WBS element in ECP and it is attached to corresponding material no in VA12.
    Now in DP81 system showing the three line item but if we go for Quotation creation one material no is coming for the three line item with different price value.
    I have also maintain these three material in DIP profile in ODP1.Please note that the first material no maintained in DIP profile that is coming not the other material no.
    Please through some light as in our case there are several line item is maintained in quotation.So is it possible to make Quotation with different item and where I have to maintain these material no.
    Thanks
    Suman Sardar

    i checked the characteristic for cost element & Material for CR, MD & Str, i created sets for cost element & the material & i determined the material which i required in the quotation. I am getting an error "no expenditure item found" , can you suggest me now.

  • Problem while SO creation through BDC

    Hi Experts,
    The follow problem  came in log file of SM35 ,while SO creation through BDC for some sales org.
      Runtime error COMPUTE_BCD_OVERFLOW has occurred.
    could you please tell me what is problem.
    Thanks
    jai

    Hi
    It could be the following reasons,
    1. Too many orders
    2. Mismatch in the field, like fields skip a line so data not matching.
    Check these
    <b>Reward if it helped!</b>
    Chandru

  • Mass vendor creation through LSMW

    Hi,
    Could you please let me know the mass vendor creation through LSMW also let me know the text file format?
    Regards
    Nama

    Hi Chandrashekar
    It is very easy to create the LSMW structure for the Vendor load, First thing you have to do is to get all the fields that the business wants to be inputed when you are XK01. Than create a LSMW recording and assign the recording to the structure.
    I can guide you with the creation. I do have a PDF for LSMW which will be very helpful for guidance, But how do i share?

  • Production Order creation through Tcode- CO10.

    Hi,
    Can I restrict new Production Order creation through Tcode- CO10 unless previous order is Techoed / closed.
    Issue : Users having authorisation for CO10, are creating multiple orders without taking them to logical closure. Since budget is getting allocated for the each & every order, in the year end reconcilation becomes difficult.
    Please suggest.
    Regards,
    Vivek S.

    Please post it in PP forum

  • Production Order creation through Tcode- CO10 unless previous order is Tech

    Hi,
    Can I restrict new Production Order creation through Tcode- CO10 unless previous order is Techoed / closed.
    Issue : Users having authorisation for CO10, are creating multiple orders without taking them to logical closure. Since budget is getting allocated for the each & every order, in the year end reconcilation becomes difficult.
    Without using an exit can we achieve it???
    Please suggest.
    Regards,
    Vivek S.

    Hi,
    You had to use the cusomter enhancement for the same
    Thanks
    SUMIT

  • Batch Number creation through DIAPI

    Dear all,
         i tried batch number creation through DIAPI.. but its shows error message [WTR1.Whscode][Line:1],'No matching Records found(ODBC-2028)' any body helpme  in this regard..
    thanks in advance.. here i have attached my coding..
    Dim objLines As SAPbobsCOM.StockTransfer_Lines
            objForm = objAddOn.objApplication.Forms.Item(FormUID)
            Dim objStockTransfer As SAPbobsCOM.StockTransfer
            objStockTransfer =    objAddOn.objCompany.GetBusinessObjectSAPbobsCOM.BoObjectTypes.oStockTransfer)    
            objStockTransfer.DocDate = System.DateTime.Today
            objStockTransfer.TaxDate = System.DateTime.Today
            objStockTransfer.FromWarehouse = "01"
            objStockTransfer.PriceList = 1
            objStockTransfer.Lines.ItemCode = "B000001"
            objStockTransfer.Lines.Quantity = "1"
            objStockTransfer.Lines.WarehouseCode = "BAP"
            objStockTransfer.Lines.BatchNumbers.BatchNumber = "B10"
            objStockTransfer.Lines.BatchNumbers.Quantity = "1"
                  objStockTransfer.Lines.BatchNumbers.Add()
                If objStockTransfer.Add <> 0 Then
                objAddOn.objApplication.SetStatusBarMessage(objAddOn.objCompany.GetLastErrorDescription, SAPbouiCOM.BoMessageTime.bmt_Short, True)
                objAddOn.objApplication.MessageBox(objAddOn.objCompany.GetLastErrorDescription)
            Else
                objAddOn.objApplication.SetStatusBarMessage("Inventory Transfered Successfully", SAPbouiCOM.BoMessageTime.bmt_Short, False)
            End If
    With Regards
    G.shankar Ganesh

    Shankar,
    your code looks fine. just ensure that the warehouse code and batch you are specifying , do exist in owhs and oibt tables respectively, with the specified quantity. ( and the best way to check it is, try stock transfer from UI with the same parameters.)
    also, may be off topic, but, before specifying batch lines, you need to ensure that items are managed by batch or not )
    regards,
    Binita

  • Creation of Purchase Contract through Upload

    Dear Gurus,
                       Mine is SRM 5.0 version and its ECS. I have created a Contract in the frontend and then Downloaded the contract in an Excel and then Deleated the Document Number and the GUI Id's and when again trying to upload the file through the Upload option from Frontend, it gives the following error message:
    <b>The specified file could not be read</b>
    Please Advice on the above issue.
    Thanks in Advance,
    Mohit.

    Hi
    <u><b>Please go through this -></b></u>
    <u>For moving contract from ERP to SRM system,please take help from</u>
    help.sap.com
    they mentioned everything very clearly.
    <u>http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAISMM/CABFAISMM.pdf</u>
    <u>http://help.sap.com/saphelp_srm50/helpdata/en/42/f93dfd975f3ee6e10000000a1553f7/frameset.htm</u>
    <u><b>Also please refer to SAP Consulting Notes below -></b></u>
    Note 859049 - SRM 5.0: Restrictions for uploading and downloading
    <u>Related Notes</u>
    907271 - Upload: New condition when you update the item
    812884 - How to change the fields used for Excel Up- and Download
    790860 - Frequently asked questions for Excel upload and download
    734946 - SRM: Restrictions for upload and download
    Note 734946 - SRM: Restrictions for upload and download
    <u>Related Notes</u>
    859049 - SRM 5.0: Restrictions for uploading and downloading
    790860 - Frequently asked questions for Excel upload and download
    673479 - Excel download: Quantities not displayed correctly
    Note 812884 - How to change the fields used for Excel Up- and Download
    <u>Related Notes</u>
    863542 - Excel download for bid invitations with display variant
    859049 - SRM 5.0: Restrictions for uploading and downloading
    Note 790860 - Frequently asked questions for Excel upload and download
    Note 673479 - Excel download: Quantities not displayed correctly
    <u>Also see the Report - <b>BBP_CONTRACT_INITIAL_UPLOAD</b></u>
    You can use this report to upload the contracts and scheduling agreements from an ERP system to an SRM system. A contract or a scheduling agreement from the SAP backend system is uploaded to the SRM system as a contract or a global outline agreement (GOA), based on the transaction type customized in the SRM or SAP backend systems.
    <u>Refer to this link for details.</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/6d/1e8442a07b0e53e10000000a155106/frameset.htm
    <b>Other related links -></b>
    Re: Initial Upload of Contracts using Flat file to SRM
    Upload legacy contract into SRM and CCM
    Re: Contract Upload to New System
    Re: Upload COntracts
    Do let me know.
    Regards
    - Atul

  • IPod stops when im half way through uploading my songs

    Please help i get through about 100 songs then it just stops i have a 4G 20 Giger. I have tryed everything my problem is like this Ben Vallack1, "iPod stalls when uploading songs, every time", 03:27pm Jul 19, 2005 CDT
    please help me .

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete  the podcasts and resync/redownload
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • PO creation through third system

    Hi Friends,
    We have one process wherein PO is created in thirdparty system & that is being created in SAP through RFC call. Middleware used is Biztalk.
    Now we have new third party system ( BOL) which need to do same job of PO creation. I want to know how process flows while integrating third party system to SAP .What are the details I will require from tool BOL etc. Is there any standard process which I can follow to get this done.
    Thanks,
    Kiran

    Kiran,
    For a PO to be created you need to have the following data
    Document type,Comp code, Purch Org, Purch Grp, Material code, Qty, UOM, Net price, Additional charges if any, delivery date.
    Please create a Custom Table with the above fields in your SAP system. you need to obtain the above data from your third party system through your middle ware system Biz Talk, and store the data in respective fields Please include date and time in the Custom table as fields.
    Create a separate program in SAP system with Date and Time as selection fields.
    The program should call PO creation BAPI and create a PO in SAP system.
    You need to discuss and decide on the timings of the Interface and run the program as a Background Job to create PO in SAP system.
    Hope this helps you.
    Raghavan

  • ERROR IN CUSTOMER MASTER CREATION -THROUGH IDOC.

    We are facing issue while creating customer through idoc. System is giving error "No batch input data for screen SAPLID_TAXNUM 1000 "
    On analyzing this error - we are able to find out that someone has enabled some duplicity check or message control on filed of tax number 1.In this filed we are storing some other legacy information which is not unique to each customer so system is poping up some screen which shows that this information already exist for other customers . Due to this customers are not getting created.
    We have checked the message control  setting bur there was no such message control.
    Now we are not able to figure it that who has done this change and how. Further how this can be resolved.
    Pls help.
    Rgds,
    Sudhanshu Dang

    Hai Jobi Thottungal,
    Since you can create a Customer with Account type 001, please check what is the PARTNER TYPE assigned.
    Now, GO TO
    IMG Sales and DistributionMaster DataBusiness PartnersCustomersCustomer Hierarchy
    Set Up Partner Determination for Customer Master
    Partner Determination Procedure Assignment
    Assign the Partner procedure to your Account group
    So at the time of creation of Customer master with your Account group, the partner function will get created automatically.
    Regards,
    Mani

  • Workflow for Vendor Creation through a portal.

    Hi All Workflow Experts,
                                         I have a scenario here.In my project  vendor is created through a portal.On submit button from portal the workflow is to be triggered.I have to design the workflow process.So can you please guide me through what all should i consider while i design this workflow?
    This is my first workflow assignment so if you explain in detail it will be a great help.
    I will just pen down what all scenarios i can think of:
    1.Start workflow after vendor creation or modification.
    2.Check whether approver are maintained in Org structure through  standard FMu2019s.
    3.Check If approvers are maintained ?
    4.If yes,approve or reject the vendor.
    5.If no,get the agents from the custom table who can take an action on this.
    This is what i can think of.
    Please guide me.
    Thanks in Advance,
    Saket.

    The corresponding BO related with the vendor creation or changing is LFA1 but this Business object doeanot have any events that are related to Create and Change , so try to create a ZLFA1 and add you own events or make use of delegation concept where you will create a delegation for LFA1.
    For your first isssue
    Start workflow after vendor creation or modification
    EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving is the user exit where in you can call the workflow when ever you change or create , because this user exit will trigger when ever you try to save the vendor. so i think you can make use of this user exit
    For your second Issue
    Check whether approver are maintained in Org structure through standard FMu2019s.
    Make use of SWI_GET_USERS_OF_ORG_UNIT this fucntion mdoule to get the user of the ORG unit
    or you can create a Rule(for determining the agents dynamically) to find the approvers.

Maybe you are looking for