Updating Loading Group on plant record using BAPI
I am using BAPI to extend to a plant
BAPI_MATERIAL_SAVEDATA
I am passing
plantdata-loadinggrp = wa_plantdata-loadinggrp.
plantdatax-loadinggrp = 'X'.
plantdata-plant = p_p_plant.
plantdatax-plant = p_p_plant.
At the time of the BAPI call the data is in the table
All other plant data gets created except for this loading group field (Sales/general plant) and only when I am usign a specific plant. It works fine for other plants
Anybody know any config or setting related to this ?
solved it
Similar Messages
-
Change Scheduling Agreement and Info Record using Bapi
Hi Experts,
Can anybody say how to change the Scheduling agreement and Info Record using Bapi.
I use BAPI_AGREEMENT_MAINTAIN to change Scheduling Agreement .
But it does not changing Scheduling lines.Hi,
Please find the below link check the setting are correct or not
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
Reagrds,
Pramod -
Upload the Plant by using BAPI " BAPI_MATERIAL_SAVEDATA"
Hi experts ,
I have a requirement where i need to update the plant for the material.
i tried to use BAPI " BAPI_MATERIAL_SAVEDATA"
Can any one please help me out what are the import and export parameters we need to pass for updating the Plant for that particluar material.
If any one have any sample code please send .
Thanks in advance.
Anupama . PHi
When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
When changing material master data, you need enter only the material number.
In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
For what fields to be filled up, please go to SE37, Enter the BAPI, click on display
Click on Import tab page , clcik on the Associated type of Parmeters
HEADDATA
CLIENTDATA
PLANTDATA
& any other data which you want to upload ,
Thanks & Regards
Kishore -
Updating NETPR field of table EINE using BAPI
Hello All,
I have a requirement to update info record data in tables EINE, EINA, KONP. The fields to be updated are KSCHL, KBETR and NETPR. I am able to successfully update KBETR and KSCHL fields using bapi BAPI_PRICES_CONDITIONS. But I am unable to find any field in the bapi structures that would update NETPR field.
Request you to please suggest how can I update NETPR successfully in table EINE.
Thanks in advance.
AnandHi Anand,
Use the Function Module 'ME_DIRECT_INPUT_INFORECORD' to update/change the info record values.
Pass the netpr value in ls_eine structure.
To get better understanding on using this function module, please have a look on this link
Create new inforecord with standard-condition via FM
Regards,
Arun Prasath Kumar.
Edited by: Arun Prasath Kumar on Jan 17, 2011 12:09 PM -
How to update delivery block in delivery(vl02n) using BAPI
hi all,
i have to update delivery block of a delivery using a BAPI. can any one suggest which bapi i have to use. and if possible let me know what are the mandatory fields that i have to fill in that bapi.
thank you all in advanceHI,
Use the BAPI BAPI_OUTB_DELIVERY_CHANGE..
Pass the delivery number DELIV_NUMB in both HEADER_DATA and HEADER_CONTROL..
In HEADER_DATA-DLV_BLOCK pass the delivery block.
In HEADER_CONTROL-DLV_BLOCK_FLG pass 'X'
Thanks
Naren -
How to update VBFA while sales order creation using BAPI
Hi,
I am trying to create sales orders for each schedule line items while inquiry creation.
This I have done in the user exit in the VA11 program MV45AFF using BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
along with the Inquiry, Sales orders are also getting created. But I am facing 2 problems.
1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
number.
2) It is not updating the VBFA (SD flow) table.
Regards,
Krishna.Hello,
1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
number.
- are you passing simulation parameter (TESTRUN) as 'X'
2) It is not updating the VBFA (SD flow) table.
- Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
Thanks
Krish -
Update field LSMNG in MIGO transaction using bapi bapi_goodsmvt_create
Hi ,
I am using bapi bapi_goodsmvt_create for creating goods receipt against purchase order in which I have to update field LSMNG i.e. Del. Note Qty. But this field is not there in BAPI input parameters/table fields.
How i can update this field using the same bapi
Thanks and regards
Deepak SharmaHi,
Can I update this field using BAPI bapi_goodsmvt_create.
thanks
Deepak -
Deletion HR - Infotype records using BAPI
Hi experts,
I sucessfully added infotype crecords in HR-ABAP using function module HR_INFOTYPE_OPERATION. For deleting the same record using the same function module (operation = 'DEL'), i got error message as <b>009No data stored for 0008 in the selected period</b>. What is the problem...?
Can any one pls solve it.
<b><REMOVED BY MODERATOR></b>
Thank u.
Regards,
Murugan Arumugam
Message was edited by:
Alvaro Tejada GalindoHI Murugan,
Following is the sample code for deletion of a record using the FM...'HR_INFOTYPE_OPERATION'
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '4002'
NUMBER = RECORD_4002-PERNR
SUBTYPE = RECORD_4002-SUBTY
OBJECTID = RECORD_4002-OBJPS
LOCKINDICATOR = RECORD_4002-SPRPS
VALIDITYEND = WENDDA
VALIDITYBEGIN = WBEGDA
RECORDNUMBER = RECORD_4002-SEQNR
RECORD = RECORD_4002
OPERATION = 'DEL'
TCLAS = 'B'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETLIST.
Regards,
Ranganathan. -
Uploading the pricing master records using bapi
Hi I have to transfer the pricing database from legacy to SAP using bapi but I am not able to find a bapi for that. Pls guide.
Check BAPI: BAPI_PRICES_CONDITIONS. You can also find sample codes in SDN for the BAPI.
Check this link [Example for Price Conditions|Re: Sample code for BAPI_PRICES_CONDITIONS]
Regards
Eswar
Edited by: Eswar Rao Boddeti on Sep 22, 2008 3:52 PM -
How to Update PO(ekko and ekpo) by using Bapi
Hi Experts,
I am very new in Abap ,I want to update some fields of Purchase order through Bapi.
In Selection screen i need these things,
PO Number , material, Delivery date
and i want to update the below fields of Purchase order(PO)
1. Street/House number ,Postal Code/City in header level (Give any dummy values for street/house number city and postal code)
2. PO quantity, Delivery date , net price for all items which has matching material as in selection screen
and i am not giving data from excel sheet ,,i am giving data directly or through selection screen for the above mentioned fields.
please give me some solution or sample code so that i can do it.
Thankx in advance..
RiteshFirst declare the header and item structure to pass the values to FM. Now the values that you enter in selection screen are captured in internal table. So you can loop this internal table and pass the values to function module item and header details.
EX:
Decleration
DATA: PO_HEAD TYPE BAPIMEPOHEADER,
PO_HEADX TYPE BAPIMEPOHEADERX,
PO_ITEM TYPE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
PO_ITEMX TYPE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
COUNT TYPE I VALUE 1,
RETS TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
Pass the values to po_head po_headx po_item po_itemx.
loop. selection screen internal tables
append . Append the internal tables
endloop.
now call the bapi and pass the values.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
PURCHASEORDER = PO_NUM
* POHEADER =
* POHEADERX =
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
* IMPORTING
* EXPHEADER =
* EXPPOEXPIMPHEADER =
TABLES
RETURN = RETS
POITEM = ITEM
POITEMX = ITEMX
* POADDRDELIVERY =
* POSCHEDULE =
* POSCHEDULEX =
* POACCOUNT =
* POACCOUNTPROFITSEGMENT =
* POACCOUNTX =
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
* POLIMITS =
* POCONTRACTLIMITS =
* POSERVICES =
* POSRVACCESSVALUES =
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
* POCOMPONENTS =
* POCOMPONENTSX =
* POSHIPPING =
* POSHIPPINGX =
* POSHIPPINGEXP =
* POHISTORY =
* POHISTORY_TOTALS =
* POCONFIRMATION =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
Hope it helps.
Regards,
K.Srikanth Reddy. -
Please help!! update fields of delivery order by using BAPI.
hi, any one can help me to update the fields of a delivery order.
the fields in the delevery order are : Batch no. quantity. and Stock location.
i cannot use any BDC to do that, BAPI is prefered in that report.
batch number and quantity are easy to find in any BAPI, but stock loc can not change from BAPI...
i have tried BAPI_OUTB_DELIVERY_SAVEREPLICA , but it always give me errors. (VL 564 and VL 295. but i definitly gave the delevery type)
so, is anyone can give me a better bapi?or give me a instance for using BAPI_OUTB_DELIVERY_SAVEREPLICA.
thanks a lot.
ChrisTry:
BAPI_INB_DELIVERY_CHANGE
BAPI_OUTB_DELIVERY_CHANGE
Rob -
Can we update The extended VBPA database table using BAPI
Hi,
We have a table VBPA appended with two fields start date and end date. Our scenario is to when modifying the sales order using the bapi BAPI_SALESORDER_CHANGE we need to update the two fields star_date and end_date of VBPA table for the corresponding Ship to or Sold to partner for the Given Sales Order.
Thanks,
Venkat.Hi,
YES You can, You should be updating this to fields using a BAPI - "BAPI_SALESORDER_CHANGE" and use table user this BAPI "EXTENSIONIN" to update this fields. Refer to BAPI documentation for more reference. Please check below code which was done for VBAK (2 date fields).
Regards,
Tim
DATA:
ZBAPISDH1 TYPE BAPISDH1,
ZBAPISDH1X TYPE BAPISDH1X,
ZEXTENSIONIN TYPE TABLE OF BAPIPAREX WITH HEADER LINE,
BAPE_VBAK TYPE BAPE_VBAK,
BAPE_VBAKX TYPE BAPE_VBAKX.
ZBAPISDH1X-UPDATEFLAG = 'U'.
BAPE_VBAK-VBELN = P_VBELN.
BAPE_VBAK-ZZSD_FROM = P_START.
BAPE_VBAK-ZZSD_TO = P_END.
BAPE_VBAKX-VBELN = P_VBELN.
BAPE_VBAKX-ZZSD_FROM = CO_X.
BAPE_VBAKX-ZZSD_TO = CO_X.
ZEXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.
ZEXTENSIONIN-VALUEPART1 = BAPE_VBAK.
APPEND ZEXTENSIONIN.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'. -
Updating Custom field in Table BUT000 using BAPI 'BAPI_ISUPARTNER_CHANGE'.
Hi,
I have added a new custom field in table BUT000. Now i want to update that field with 'X' and i have used EXTENSIONIN parameter in the BAPI 'BAPI_ISUPARTNER_CHANGE'. i have populated the field name(Custom field name) and value 'X' to that structure and passed to BAPI. But that field value was not getting updated. So can any one help me how to resolve this issue.
Thanks,
SushmaHi Ravi,
Thanks for your response.
I have passed the Structure name in parameter EXTENSIONIN, but still i am facing the same problem.
Thanks,
Sushma -
Updating Material Master Moving Average Price using BAPI
Hi,
We need to create a program using which we can update material master moving average price for a specific material.
For this we are using BAPI_MATERIAL_SAVEDATA.
when we are executing this bapi with inputs, it is showing data updated or created but when we are checking it in MAterial Master the data (MOving Price ) is not getting updated.
Please advise,
Thanks.I am trying to use BAPI_MATVAL_PRICE_CHANGE to change the price of a material in material master
(The moving average price [MAP] in Accounting View 1)
Using the BAPI, I enter
--> RFC target are
-> Material No.
-> Valuation Area
--> Prices table (I enter the new price that i want)
when I run the BAPI, i get error message (This can be seen in the returns table)
ID --> CKMLSENDPRICE
MESSAGE NUMBER --> 701
DETAILS --> No customizing data for Valuation Area XXXX found
PLease advise. -
Down load or create text file using bapi
hi friends,
My requirement is to create text file or down load text file in presentation server when the bapi runs in which the ip address is defined at the interface.
plz sujjest me,
points will be rewarded .
prasad.Hi,
The FM 'GUI_DOWNLOAD' should use the network path like '
10.10.10.10\shared_file\PO.txt'. Pass this value to the file path parameter and execute the program.
Thanks..
Preetham S
Maybe you are looking for
-
How to display the Overall result value at the top of work book
Hi, How can i display the value of Overall result(Sum of the Total) column at the top of the work book in Text field. Thanks Sreadhar
-
HOW DO I FIX THIS >:(
-
I literally JUST dropped my iPod touch 4g 8gb it cracked the screen
I can still see but there is a big crack going from bottoms to top with smaller cracks. Is there any way I can get a new free one? It fell out of my sweatshirt pocket
-
Which tables to use for Project Status Report in CR2008 accessing R/3 data?
I am working on a Project Status Report on a WBS in Crystal Report 2008 that is accessing data from a R/3 system level that will provide me the following fields: 1) Purchased Hours 2) Billed Hours 3) Non-Billed Hours 4) Credit Memo 5) Remaining Hours
-
Hi, http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12041.htm#i2699447 SQL*Plus® User's Guide and Reference Release 11.1 Part Number B31189-01 SHOW ALL Lists the settings of all SHOW options, except ERRORS and SGA, in alphabetical or