BAPI_MATERIAL_SAVEDATA  how to ADD a Plant and CHANGE Sales Org. info

Hello All,
I got a working version of the BAPI Changing some data, and i need to take it to the next level.
In some cases I want to ADD a new plant to an existing material.
I filled the Sector, Type and Materialnumber in the BAPIMATHEAD and added the Materialdescription-table.
Since I´m creating I´m not to sure about the FLAGS in BAPIMATHEAD, I marked:
PURCHASE_VIEW
MRP_VIEW
WORK_SCHED_VIEW
STORAGE_VIEW
Naturally I also filled PLANTDATA, I don´t know what to do with PLANTDATAX though, since I want to CREATE a new plant-View to an Existing Material, not change one...
SAP can´t be expecting me to check every field in the PLANTDATAX, can they?
Could somebody indicate what i´m doing wrong?
PS: Is it possible to ADD a plant, and, in the same BAPI-Call, change Salesorg.-Data?
Thanks a bunch for replying!
Kind Regards,
Pieter

after a lot of hours, a friend discovered what I was doing wrong.
I was doing:
lt_unitsofmeasurex-alt_unit = 'X'.
lt_unitsofmeasurex-alt_unit_iso = 'X'.
instead of using the actual unit instead of 'X'

Similar Messages

  • I tired to change the billing info on the app on my phone and it kept saying it was unable to process my request, then when i tried to change it on my laptop it said i reached the max amount of update attempts. how do i fix this and change my billing info

    help

    Change the email on the old account to another new, current email address.
    An email address can only be linked to one Apple ID.
    It is possible to have content from multiple Apple ID's on a single iDevice.

  • When opening a new tab, it opens onto a search engine, which is not what i want it to do. How do i resolve this and change it back to just a black page?

    when opening a new tab, it opens onto a search engine, which is not what i want it to do. How do i resolve this and change it back to just a black page?

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • How to reverse from quality and change the vendor account.

    I had made GR, but posted wrong entries, instead of doing one vendor account & i had made in other vendors account, this lot is passed by quality also that means it UD is also done.
    how to reverse from quality and change the vendor account.
    Thanks and Regards

    hi Raj,
    Reversing Stock Postings Locate the document in its SAP Library structure
       1. Choose Logistics ® Materials Management ® Inventory Management ® Goods Movement ® Goods receipt ® For purchase order ® PO number known.
    The initial screen for creating a goods receipt for a purchase order appears.
       2. In the field for the movement type, enter
       3. 102 (goods receipt for a purchase order into warehouse - reversal). In the field for the purchase order, enter the purchase order number for the original goods receipt.
    Note
    You can copy the purchase order number from the inspection lot.
       4. Choose Enter to display the selection screen for the purchase order items.
       5. Select the purchase order item for which you want to create the goods receipt and set the Stock type indicator to the stock to which the goods were originally posted with the usage decision (for example, F for unrestricted-use stock or S for blocked stock).
       6. Save the goods receipt and exit the Materials Management component.
       7. Choose Logistics ® Quality management ® Quality inspection ® Inspection lot ® Usage decision ® Change with history.
    The initial screen for changing a usage decision appears.
       8. Enter the number of the inspection lot for which you previously made the usage decision and choose Usage decision (UD).
       9. To cancel the inspection lot, choose Usage decision ® Functions ® Cancel lot in the usage decision screen.

  • How to get automatic plant and shipping point and storage location

    hi,
    sap gurus,
    how to get automatic plant and shipping point and storage location automatically into the sales order
    i have done all the config settings for that
    but its not appearing automatically.
    regards,
    balaji.t

    Hi
    Balaji...
    U can get the plant in sales order,  by doing the default the same in customer master or in  material master. In customer master -- sales are data--shipping tab delivering plant there u can assign and get the same in order for that customer. it is better to do in customer master rather than in material master.
    Shipping point is getting determine in sales order and u can not make it default like plant. Shipping point is determine in the basis of Shipping condition of customer ( ship to party)+ loading group of material + Deliverying plant there u have to assing the shipping point and it will flow in the sales order. Tcode OVL2
    For S loc u have to enter manually in the sales order u can not get it automatically.
    Hope this will help you.
    Thx.

  • Urgent!! How to update Planning book and change when planning will start

    Hi Gurus,
                 I had configured the system and we can initilize planning area every month and my question is 
    1. How to update planning book and change planning start date every month?
    Thanks a Lot
    Regards,
    Raj

    Hi,
    In the planning book-dataview, you will assign the time bucket profile, and will be on rollling basis. if you want the forecast profile on rolling basis, maintain the forecast and history horizon as periods then that will also be on rolling basis.
    Regards,
    Raj

  • I want to change my email account associated with my iTunes account. How do I do that and keep all other info intact!

    I want to change my email account associated with my iTunes account. How do I do that and keep all other info intact!

    http://support.apple.com/kb/HT5621

  • HT4623 Bought Iphone Off of craiglist and it is not an att product  the iphone had a gci sims card in it . How do i unlock phone and change carriers

    Bought Iphone Off of craiglist and it is not an att product  the iphone had a gci sims card in it . How do i unlock phone and change carriers

    You contact the carrier it is locked to.
    Unfortunately, if it's actually a GCI phone, they do not offer unlocking.

  • I've never made a rescue email, how do I make one and change my security questions

    I've never made a rescue email, how do I make one and change my security questions

    Click here for information. If you can't reset them through the method described in that article, contact the iTunes Store staff via the link in the 'Additional Information' section.
    It isn't possible to create a rescue email address without correctly answering two of the questions. Nobody on these boards can reset them for you.
    (95613)

  • How to ADD reference table and make a field as currency field in dictionary

    pls render some info on how to add refernce table and ref field if i want to make an added field as a currency or quantity field...

    Hi Kiran,
    It sounds like you are creating a "Z" table or structure and have defined a quantity (eg MENGE). But when you run the syntax check, the system is saying you need to define a reference table / field.
    Well when you are in SE11, click on the "Currency / Quantity Fields" tab. You will see 2 columns called "Reference Table" and "Reference Field". These 2 columns define the unit of measure for the currency / qty.
    If you have defined in your table MENGE and MEINS and the MEINS field is the unit of measure for the MENGE field you should define your fields as such (inthe Currency/Quantity Fields" tab:
    Table - ZVBAP
    MENGE MENGE_D QUAN ZVBAP MEINS
    MEINS MEINS   UNIT
    Hope this makes sense.
    Cheers,
    Pat.
    PS. Kindly assign Reward Points to the posts you find helpful.

  • New sales order and Change sales order in item level or delete at item leve

    I got one requirement. Daily i have to display one report on new sales orders created on that day and any sales order item is modified or any item is deleted or any item is added.
                      How to get the sales order numbers and position numbers which will follow above creteria. I found one function module but it is not giving position numbers and new sales order details.
             Is there any BAPI for this requirement.

    I am using "CHANGEDOCUMENT_READ" function module to get the new sales orders created and changed sales order items on a particular time. This function module is getting data from CDHDR and CDPOS tables. But only change sales orders is coming. New sales orders which is created on that time is not getting.
              One of my friend is telling like we have to activate one change pointer to retrive new sales orders also. Which is like there will be one check box.
    Is any body having idea on this. Please reply me on briefly with the code to retrive new sales orders and changed sales orders

  • Intercompany sale - how can i assign , more than 1 sales org of diff compan

    Hi,
    I have
    comp1 - Sales org 1 - plant 1
    comp2 - Sales org 2 - plant 2
    comp3 - Sales org 3 - plant 3.
    Now i want to do Intercompany sale of Sales org2 with plant 1 & Intercompany sale of sales org3 with plant 1.
    For that how can i assign , more than 1 sales org of diff company codes to Plant1 ??
    Does SAP allow to do intercompany sale for more than 1 diff sales orgs ??
    Thanks for immediate response.
    Nitin

    Hi nitin,
    as per your scenario,
    Company code 1 orders goods through its sales organization 1 from Plant 2 belonging to Company code 2.
    It is imperative that both Plants 1 & 2 should have the material. In other words, the material is created for both the Plants 1 & 2 + their respective storage locations.
    Sales Organizations and Plants are uniquely assigned to Company codes. It is not possible to assign either a plant or a sales organization to more than one company code.
    Sales organizations and plants assigned to each other need not belong to the same company code.
    In other terms,
    a plant belonging to Company code 1 & assigned to Sales Organization 1 can also be assigned to Sales Organization 2 of Company Code 2.
    CONFIGURATION SETTINGS
    Assign Delivery Plant of the supplying company code to Sales Org + Distribution channel of the Ordering company code in the Enterprise Structure.
    DEFINE ORDER TYPES FOR INTERCOMPNY BILLING:
    Menu path: IMG/ SD/Billing/Intercompany Billing/Define Order Types for Intercompany billing
    Assign Organizational units by Plant:
    Menu Path: IMG/ SD/Billing/Intercompany Billing/Assign Organizational units by Plant.
    Define Internal Customer Number By Sales Organization:
    Menu Path: IMG/ SD / Billing/ Intercompany Billing/ Define Internal Customer Number By Sales Organization:
    Creating / Showing Ordering Sales Organization as Internal Customer for Supplying Company code:
    Transaction Code: XD01
    The ordering sales organization is represented as Internal customer of Supplying company code.
    We need to create customer master in Account Group - Sold to Party and maintain minimum required financial & Sales Area data.
    This internal customer number has to be assigned to the ordering sales organization. Hence, the system automatically picks up this Internal customer number whenever there is Intercompany billing.
    Thanks,
    Raja

  • How to add extension fields and mashups to partner solution?

    To add extension fields and mashups I have log on to the system using a user with adaptation rights.
    There's no possibility to do that from within the UI designer, right?
    Now, if I adapt the screens with extension fields or by creating and adding mashups, how do I add these enhancements to my partner solution?
    Or in other words, how do I ship extension fields and mashups with my partner solution?

    Before you use the key user tools, you must "enable key user tools" in copernicus by right click on the solution. Now the changes will be added to the partner soltution transport order.
    But you can add extension field in copernicus as well by adding new item "business object extension" to the partner solution.

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

Maybe you are looking for

  • HT4623 how do i get my contacts back on my  laptop

    how do i get my contacts back on my  laptop? I lost my iphone 3gs. so i kave new one.

  • PDF file in java

    Hai everyone, Is it possible for me to display a pdf file in an applet or an application?? if yes , please give me a link where i can get the informatio about .. thanx Peter Iyer

  • How Can I Bring Up the Download Window Again?

    Hi, I downloaded an update for a program. I want to burn it to a CD for safety. How can I bring the downloading window again to find it? Just looking in the download folder doesn't help. I need to see the downloading window to see the last thing down

  • Af:query date attributes BUG in TP3

    Hello, I have found another bug in the af:query component. The date selectors that are rendered for every date attribute don't work, the calendar doesn't open when I click the calendar icon. Thanks, Marc

  • Information Req. : MI Integration with PM

    Hi, Is it possible to integrate MI with PM. If yes, please provide me ith some links or documents, if available. my mail ID : [email protected] Thanks in advance. Anil Bhat