Create OM data without BDC

Hi
I have to upload data for OM module for PP01 tcode and i dont want to go for BDC  which FM i should use pls help me out
Regards
Meeta

The easyest way is by the FM RH_INSERT_INFOTYPE.
Starting mainaining the Infotype 1000 and then all the next you need.
If you don't know the OBJID of the Object you are creating then use this FM to know it.
CALL FUNCTION 'RH_GET_NEXT_NUMBER'
        EXPORTING
         action                           = 'DIRECT'
          ext_number                       = lv_objid
          otype                            = lv_otype
          plvar                            = gv_plvar
    TEST_MODE                        =
       IMPORTING
         number                           = lv_objid
       EXCEPTIONS
         invalid_action                   = 1
         number_must_be_zero             = 2
         invalid_object                    = 3
         no_external_interval_found       = 4
         no_internal_interval_found       = 5
         invalid_number                   = 6
         no_more_numbers_available        = 7
         OTHERS                           = 8
enjoy

Similar Messages

  • Incoming Invoice Create from data without posting the GR details

    Hi Experts,
    I am trying to create a MM invoice (MIRO) using the BAPI BAPI_INCOMINGINVOICE_CREATE and I do not want to post GR details in this invoice. But I have not been able to see the face of success yet.
    Following are the parameters that I pass to the structures of this BAPI:
    BAPI_INCINV_CREATE_ADDRESSDATA Addressdata = new BAPI_INCINV_CREATE_ADDRESSDATA();
    BAPI_INCINV_CREATE_HEADER Headerdata=new BAPI_INCINV_CREATE_HEADER();
    BAPI_INCINV_CREATE_ACCOUNTTable Accountingdata = new BAPI_INCINV_CREATE_ACCOUNTTable();
    BAPI_INCINV_CREATE_ACCOUNT Account = new BAPI_INCINV_CREATE_ACCOUNT();
    BAPI_INCINV_CREATE_ITEMTable Itemdata = new BAPI_INCINV_CREATE_ITEMTable();
    BAPI_INCINV_CREATE_ITEM Item = new BAPI_INCINV_CREATE_ITEM();
    BAPI_INCINV_CREATE_GL_ACCOUNTTable Glaccountdata=new BAPI_INCINV_CREATE_GL_ACCOUNTTable();
    BAPI_INCINV_CREATE_GL_ACCOUNT Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();
    BAPI_INCINV_CREATE_MATERIALTable Materialdata = new BAPI_INCINV_CREATE_MATERIALTable();
    BAPIRET2Table Return=new BAPIRET2Table();
    BAPI_INCINV_CREATE_TAXTable Taxdata = new BAPI_INCINV_CREATE_TAXTable();
    BAPI_INCINV_CREATE_VENDORSPLITTable Vendoritemsplitdata = new BAPI_INCINV_CREATE_VENDORSPLITTable();
    BAPI_INCINV_CREATE_WITHTAXTable Withtaxdata = new BAPI_INCINV_CREATE_WITHTAXTable();
    string Fiscalyear="", Invoicedocnumber="";
    Headerdata.Invoice_Ind = "X";
    Headerdata.Bus_Area = "ED";
    Headerdata.Comp_Code = "GAMB";
    Headerdata.Doc_Date = "20110505";
    Headerdata.Bline_Date = "20110505";
    Headerdata.Doc_Type = "RE";
    Headerdata.Diff_Inv = "0001736123";
    Headerdata.Currency = "USD";
    Headerdata.Exch_Rate = 7.33M;
    Headerdata.Po_Ref_No = "4510146624";
    Headerdata.Gross_Amount = 87500.00M;
    Headerdata.Header_Txt = "";
    Headerdata.Inv_Rec_Date = "20110505";
    Headerdata.Pmnttrms = "G001";
    Headerdata.Pmnt_Block = "A";
    Headerdata.Ref_Doc_No = "Inv01";
    Headerdata.Pstng_Date = "20110505";
    Headerdata.Calc_Tax_Ind = "X";
    Headerdata.Person_Ext = "extsuro";
    BAPI_INCINV_CREATE_MATERIAL Material = new BAPI_INCINV_CREATE_MATERIAL();
    Material.Invoice_Doc_Item = "0001";
    Material.Material = "W900000664";
    Material.Val_Area = "PL01"; // plant
    Material.Db_Cr_Ind = "S";
    Material.Item_Amount = 70000.00M;
    Material.Quantity = 200.00M;
    Material.Base_Uom = "EA";
    Material.Tax_Code = "I1";
    Materialdata.Add(Material);
    Item = new BAPI_INCINV_CREATE_ITEM();
    Item.Invoice_Doc_Item = "0001";
    Item.Po_Number = "4510146624";
    Item.Po_Item = "00010";
    Item.De_Cre_Ind = "X";
    Item.Freight_Ven = "0000010149";
    Item.Tax_Code = "I1";
    Item.Item_Amount = 70000.00M;
    Item.Quantity = 200.00M;
    Item.Po_Unit = "EA";
    Item.Po_Unit_Iso = "EA";
    Itemdata.Add(Item);
    proxyPOInvoice.Bapi_Incominginvoice_Create(Addressdata, Headerdata, out Fiscalyear, out Invoicedocnumber,
        ref Accountingdata, ref Glaccountdata, ref Itemdata, ref Materialdata, ref Return, ref Taxdata, ref Vendoritemsplitdata, ref Withtaxdata);
    This is resulting in the below error message:
    u2022     Enter goods receipt data only when working with GR-based IV
    For the first error messages, after some good amount of googling and also searching in this forum I could reach to this conclusion that, if PO is marked with GR-based IV flag then invoice cannot be booked without GR. Also while booking such as invoice for every GR Item we need to pass:
    Ref_Doc = goods recript number,
    Ref_Doc_Year = year for good receipt number
    and Ref_Doc_It = item number in the goods receipt.
    I have created a PO which is not GR-based IV flagged, i.e. GR is not mandatory for creating invoice. Still I get the same message every time. I went through the documentation of the BAPI and also through many sites that gave sample codes to create an MM invoice but without any success.
    The same entry when I enter through SAP screens I am able to post the invoice without GR.  Please help me identify where I am going wrong.
    Thanks in Advance
    Best Regards
    Roy

    I found out the cause to this whole thing. It seems that even though if you don't need to pass a parameter you need to fill it with default value. e.g.
    my invoice was not GR-based IV invoice. Therefore, I don't actually need to pass values for:
    REF_DOC
    REF_DOC_IT &
    REF_DOC_YEAR.
    Well i was wrong here. Even then I need to pass these values as:
    REF_DOC = ""
    REF_DOC_IT = "0000"
    REF_DOC_YEAR = "0000"
    I guess this is how SAP .Net Connector works.
    Thanks to all anyway
    Roy

  • Want to upload data without BDC and LSMW in FB01

    Hi Expert,
    I want to upload data in FB01 without using BDC and LSMW. I want to use all posting key for posting the data. Could any body provide me the code using BAPI. My flat file has all the posting key for the operation.
    Regards
    Sanjay

    Hi Sanjay,
    Here is one example showing BAPI_ACC_DOCUMENT_POST for posting vendor invoices. In the similar manner you can populate other tables like accountrecievables also. So by using the same BAPI you will be able to post a document with all possible conditions:
    DATA: lt_glacct  TYPE TABLE OF bapiacgl09,
          lt_vendact TYPE TABLE OF bapiacap09,
          lt_curramt TYPE TABLE OF bapiaccr09,
          lt_return  TYPE TABLE OF bapiret2.
    DATA: lv_objtyp TYPE bapiache09-obj_type,
          lv_objkey TYPE bapiache09-obj_key,
          lv_objsys TYPE bapiache09-obj_sys,
          wa_docheader TYPE bapiache09,
          wa_glacct  LIKE LINE OF lt_glacct,
          wa_curramt LIKE LINE OF lt_curramt,
          wa_vendact LIKE LINE OF lt_vendact,
          wa_return  LIKE LINE OF lt_return.
    * Populate header data of document
    wa_docheader-obj_type = 'REACI'.
    wa_docheader-obj_key = '$'.
    wa_docheader-obj_sys = 'T90CLNT090'.
    wa_docheader-bus_act = 'RMRP'.
    wa_docheader-comp_code = '1000'.
    wa_docheader-username = sy-uname.
    wa_docheader-header_txt = 'Upload using BAPI'.
    wa_docheader-doc_date = '20090331'.
    wa_docheader-pstng_date = '20090331'.
    wa_docheader-fisc_year = '2009'.
    wa_docheader-doc_type = 'RE'.
    wa_vendact-itemno_acc = '0000000001'.
    wa_vendact-vendor_no = '0000005200'.
    wa_vendact-pmnttrms = '0001'.
    wa_vendact-bline_date = '20090421'.
    wa_vendact-item_text = 'Account payable'.
    APPEND wa_vendact TO lt_vendact.
    wa_glacct-itemno_acc = '0000000002'.
    wa_glacct-gl_account = '0000089000'.
    wa_glacct-item_text = 'GL account'.
    APPEND wa_glacct TO lt_glacct.
    wa_curramt-itemno_acc = '0000000001'.
    wa_curramt-curr_type = '00'.
    wa_curramt-currency = 'EUR'.
    wa_curramt-amt_doccur = '-1000.00'.
    APPEND wa_curramt TO lt_curramt.
    CLEAR wa_curramt.
    wa_curramt-itemno_acc = '0000000002'.
    wa_curramt-curr_type = '00'.
    wa_curramt-currency = 'EUR'.
    wa_curramt-amt_doccur = '1000.00'.
    APPEND wa_curramt TO lt_curramt.
    CLEAR: wa_curramt,wa_glacct,wa_vendact.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader = wa_docheader
      IMPORTING
        obj_type       = lv_objtyp
        obj_key        = lv_objkey
        obj_sys        = lv_objsys
      TABLES
        accountgl      = lt_glacct
        accountpayable = lt_vendact
        currencyamount = lt_curramt
        return         = lt_return.
    IF sy-subrc EQ 0.
      WRITE:/ lv_objtyp.
      WRITE:/ lv_objkey.
      WRITE:/ lv_objsys.
      LOOP AT lt_return INTO wa_return.
        WRITE:/ wa_return-message.
        CLEAR wa_return.
      ENDLOOP.
      COMMIT WORK AND WAIT.
    ENDIF.
    Hope this solves your problem.
    Regards,
    Brajvir

  • How to update list item using client object model without changing created/modified dates?

    Hello All,
    I want to update list item using the SharePoint Client Object
    Model without updating the created / modified date. Is it possible?
    Please help.
    Thanks.

    Using the SystemUpdate method should do the trick, according
    to its literature.
    Additionally, would something like this be of any use for you?  Taken from this
    Stack Exchange thread: -
    public static class SPListItemExtensions
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void Update(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.Update();
    finally
    rh.EnableEventFiring();
    else
    item.Update();
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="incrementListItemVersion"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate(incrementListItemVersion);
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate(incrementListItemVersion);
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate();
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate();
    private class SPItemEventReceiverHandling : SPItemEventReceiver
    public SPItemEventReceiverHandling() { }
    new public void DisableEventFiring()
    base.DisableEventFiring();
    new public void EnableEventFiring()
    base.EnableEventFiring();
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Merging data without set text framing - creating continuous, flowing/wrapping records

    Hi.
    Has anyone figured out a way to merge data without confining each record to set text frame size, hence creating a continuous flow or wrapping of records?
    I need to put in an image, followed by a text description, so I can't merge all the text into one text box.
    I can fit frame to text, then align with set gap, but this is way to time consuming and ineffective when creating a doc of several 100 pages.

    OysterBoy84 wrote:
    Hi.
    Has anyone figured out a way to merge data without confining each record to set text frame size, hence creating a continuous flow or wrapping of records?
    I need to put in an image, followed by a text description, so I can't merge all the text into one text box.
    I can fit frame to text, then align with set gap, but this is way to time consuming and ineffective when creating a doc of several 100 pages.
    Searching Google for "indesign script combine all stories" without quotes turns up a number of links. There's a link to InDesign Secrets that describes a free script that may solve your problem.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Creating Dates without CONNECT BY

    How can I create dates between date range i.e if user enters 10-jun-2008 and 20-jun-2008,query should return dates from 10-jun to 20-jun (10 dates).
    without using CONNECT BY .

    all_objects is a view in the oracle data dictionary.
    The view contains details of all objects that you have access to, whether or not you own them, 1 entry per object.
    It is preferable to use all_objects rather than user_objects as user_objects only contains the objects which you own.
    example: in my test schema user_objects contains 240 rows
    all_objects contains 58,750 rows.
    so if you use user_objects here you will never get more than 240 rows with my query on my database.
    If you use all_objects, then you will never get more than 58,750 rows on my database

  • Proforma invoice is created for delivery without PGI in STO(Depot sales)

    Dear Gurus,
       I am facing a strange issue, user created Purchase order with some material X of 4 quantity, and he created the replenishment delivery for 1 quantity and without doing any Picking and PGI but system allowed to create proforma invoice with 4 quantity I checked the copy control config settings for Delivery and Proforma invoice all are maintained fine (viz., billing qty as D, copying req:311 and Data VBRK\VBRP:001)( Ichecked the change log for delivery but I didnt observed any chanes in delivery) .. strange to watch ........created the same scenario in quality but system doesnt allowed to create proforma invoice without PGI and picking(Just one month before quality is refreshed with Production).
    If anyone faced the same problem let me konw the solution ate the earliest.
    Best Regards,
    Kishore.SGR

    Hi
    As already said, as per the standard the Performa Invoice do not check the Goods Issue status of a Delivery since it uses the Copying Requirement 009 in transaction VTFL.
    If you want your performa invoice to be created only after the PGI of a delivery, then use the Requirement 003 in Copying Requirement field for the combination of your Delivery Doc. and Billing doc. in transaction VTFL at Header level.
    Regards
    Amitesh Anand

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • How do I create a Snapshot without testing query?

    I'm working in an environment where the connection to the database server is done through a VPN that is sometimes broken and I have to wait for some time until it is restored. Other times, the database server is just down and in maintenance.
    In the meantime, I have to work with Director installed in a local virtual machine in my laptop.
    So, now I'm trying to develop some EDQ processes when there is no connection to the database, I'm unable to save snapshots because they require a test to occur (clicking in the Test button) before saving them, even if I'm providing a full SQL query to snapshot. I think it's because Director needs to know stuff like the data types of the columns to initialize properly the fields in the process.
    The problem is that I can't stop working just because there is no VPN. I should be able to create the processes and test them later when connection to the database is restored. I can do a lot of stuff (I can even copy-paste snapshots!) but I can't change nor create new ones, and that blocks me constantly.
    How can I do a snapshot save without database connection and have Director asking me the datatypes instead of trying to guess them from a "Test"?

    Hi,
    You can't create a snapshot without a connection to the database. A connection is needed when a snapshot definition is created in order to retrieve the column names and data types. As a solution to your problem, why not use data interfaces? Create a data interface that is of the required shape and refer to this in your processes (instead of the snapshot). You can then create mappings to different sources of data, e.g. snapshots, reference data, etc. You can test your processes when you're offline using a reference data mapping.
    regards,
    Nick

  • Error while creating Production order without BOM

    Hi Guys,
    While creating production order without a BOM i am getting the following error in the error log.
    Error: BOM for material xxxxxx does not contain any valid items
    Message no. CO636
    Kindly help.
    Regards,
    Sid

    Dear customer,
    could you check in the master data screen of the order if one BOM has been selected?
    please coudl you check your customizing the following transactions:
    OPJM
    OPJI
    what do you have in 'BOM slection field' MRP4 view of the header material?
    Please check if with this info you can find the missing data to explode the BOM
    regards
    Maria

  • "Source not found" Error creating URL Data control with query parameters

    Hi,
    I have a restful service for which i want to create a URL data control. I am able to create the URL data control successfully when i am not passing any parameters in the Source field. But if i am specifying the parameters in the source field like this Department=##ParamName##, something weird is happening. After giving the param string in the Source field, it asks for default param value to test the url. It tests the url successfully. After that i select XML as the data format in which i am mentioning the xsd like this . "file:///C:/..../something.xsd" . And this is when i am getting the error. "Invalid Connection. The source is not found". I am giving exactly same path for xsd which i gave while creating URL data control without query parameters. Infact i was able to create the URL data control with query parameters successfully till afternoon. after that it started giving me this error all of a sudden. Infact as soon as i was able to create a URL data contol with query parameter successfully, i took a backup of the application before moving further. But even that backup is not working now.
    As far as i understand, i dont think there will be any change in xsd if query params are passed to a web service. Please correct me if i am wrong.
    Just dont know what could be the issue. Please help
    Thanks

    Hi,
    xsd is used for the URL service to know what the returned data structure is so it can create the ADF DC metadata
    Frank

  • What if i load transaction data without loading master data

    Hello experts,
    What are the consequences if i load transaction data without loading master data?Are there any other factors except the load performance because of SID generations etc and inconsistencies.
    <b>What kind of potential inconsistencies will occur?</b>
    Problem here is:
    when the transaction load starts a new master data such as employee(x) would be have been created in R/3 which does not exist in BW and hence transaction load fails.
    Thanks and Regards
    Uma Srinivasa rao

    Hi Rao,
    In case you load the master data after loading the transcation data and if there is any look up at the master data in teh update rules, then you can delete and reconstruct the requests in the ODS/Cube so that the latest master data is pulled in in the data target.
    Make sure you do the Apply hier/attr change before doing the delete and reconstruct.
    Bye
    Dinesh

  • How to add rows in table control for data recording BDC?

    hello,
    pl tell me the way to upload data through BDC in table control of screen .
    how to add fields inrecording of table control?
    Please give some code in this regard.
    I am generous in giving points..pl help!

    Hi,
    While doing code under recording first you need to do the recording with sample data under a particular transaction like T-code XK01 (Vendor creation).
    Take an example of create vendor using T-code XK01:
    Go to t-code 'SHDB' under make recording for XK01 with sample data and once if you complete the recording means after vendor creation check the source code bye by pressing the button  'Program', it shows the total coding for recording of what you entered the test data.
    Then you will create one program and copy that source code of recording into your program, and now you have to remove the values at perform statement and give the internal table field name.
    Like that you can develop your own code along with your validations.
    my best suggestion is don’t see the example code of recording method because any one for standard t-code should get the code from recording with sample data, so first tryout with your own recording method and you can understand the code step by step.
    With these I hope you will get some idea of recoding method.
    Let me know for further doubts.
    Regards,
    Vijay.

  • Is it possible upload data using BDC for creation of Quotation

    Dear All ,
    Scenario is such that details in teh quotaion is entered in three steps by three departments, weh ave planned that  all three departments would work on single excel sheet enter the details over there and when it is ready  we will create quotaion by uploading it through BDC,
    First of all is it possible to upload  the data in quotaion through BDC  , Kindly suggest
    Regards
    Sunaina

    Hi Sunaina,
    Yes its possible to load the data through BDC.
    But I would suggest to go for BAPI instead of BDC.
    BAPI_QUOTATION_CREATEFROMDATA Or BAPI_SALESDOCU_CREATEFROMDATA can be used to create a quotation .
    Regs.
    Sai

  • Is it possible to Create Material Master without Profit Center ?

    Hai,
          1) Is it possible to Create Material Master without Profit Center ? 
          2) How SAP System Validate Profit Center in material master. ? is it material Type wise ?
          3) Whether PO Order Creation,GRN & MIRO Possible for those material Master without Profit Center.?
    Kindly Explain me clearly..
    Thanks & Regards,
    Swetha

    Hi,
    Profit center is at the plant level.
    You can create material master even with out a profit center.This field will be there in the costing view and and general sales/plant data.
    while creation of the materila master if do not select these views system will not ask for that.Normally it is pertaining to the costing analysis.
    A profit center manager is held accountable for both revenues, and costs (expenses), and therefore, profits. What this means in terms of managerial responsibilities is that the manager has to drive the sales revenue generating activities which leads to cash inflows and at the same time control the cost (cash outflows) causing activities. This makes the profit center management more challenging than cost centre management. Profit center management is equivalent to running an independent business because a profit center business unit or department is treated as a distinct entity enabling revenues and expenses to be determined and its profitability to be measured.
    Business organizations may be organized in terms of profit centers where the profit center's revenues and expenses are held separate from the main company's in order to determine their profitability. Usually different profit centers are separated for accounting purposes so that the management can follow how much profit each center makes and compare their relative efficiency and profit. Examples of typical profit centers are a store, a sales organization and a consulting organization whose profitability can be measured.
    For more info,please refer
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/cc/36428094f311d2b47a006094b9b0a5/frameset.htm,
    Regards,

Maybe you are looking for