PO creation BAPI
Dear Gurus,
I am trying to create an account assignment - "K" - PO through BAPI_PO_CREATE. The condition is that the net price should get updated only from the info-record. But, eventhough we are passing the net price into the BAPI from the input file, the PO is getting created only with the prie from the condition record. I am getting an information message in (I_Return) - Price updated from condition record.
In the info-record I have maintained the variable order unit = 2 and also maintained the respective condition record.
Please let me know how to resolve this.
Regards
Badrinath Murali
Hi,
First and foremost thing is that the conditions in the PO are always time dependent.
Do you want the system to pick up the price which you entered ---
1. through BAPI or
2. should it pick from inforecord or
3. should it pick up from condition record?
for the (1) case delete the condition record or change the validity of the condition record and info record to the future date and upload the POs through BAPI
for the (2) case delete the condition record or change the validity of the condition record and upload the POs through BAPI.
for the (3) case delete the info record and upload the POs through BAPI
Hope I clarified ur doubt.
regards,
Kannaiah Naidu C
Similar Messages
-
Hi experts,
Is there any BAPI for Customer creation? I tried with BAPI_CUSTOMER_CREATFROMDATA1, but it doesn't have account group field and also reference customer is mandatory field.There are many fields are unavailable in that BAPI. Please give some solution.
Thanks in Advance.This BAPI_CUSTOMER_CREATEFROMDATA1 is intended for Only for ONLINE Store, so better look at class CMD_EI_API, methods MAINTAIN_DIRECT_INPUT or better MAINTAIN_BAPI.
Regards,
Raymond -
Hi Everyone,
I'm creating Quotation thru a "Z" program by calling the BAPI "BAPI_QUOTATION_CREATEBOS".
All paramteras are passed thru the flat file table and successfully got created.
When I look into the Costing Model values, they are still empty.
Kindly Help.
Gokul.NHi,
Check what costing values you mentioning manually that should be in FLAT FILE.
If your costing values are in flat file and not populated after creation of quotation through BAPI then it means problem in either file reading or in file uploading through BAPI.
Check BAPI u are using.
kapil -
Info record creation - Bapi or standard function module
Hi All,
Is there any std function module or bapi to create Info record in transaction Me11 transaction.
<REMOVED BY MODERATOR>
Regards,
Vinoth.
Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:27 PMTry with the function module - ME_POST_INFORECORD.
Thanks,
Srinivas -
Sales order creation BAPI with configuration data
Hi,
I am creating Sales order through BAPI_SALESORDER_CREATEFROMDAT2, the order is getting created but I am not getting the characteristic values. I filled the structures required for the configuration part.
If possible please post the code for the config part.
Thanks,
SantoshhI,
Here is some sample code:
Order header
l_order_header-doc_type = 'ZQBV'.
l_order_header-distr_chan = '10'.
l_order_header-division = '00'.
if g_qals-werk eq '1100'.
l_order_header-sales_org = '1000'.
else.
if g_qals-werk eq '3100'.
l_order_header-sales_org = '3000'.
else.
message i001(00) with text-005.
endif.
endif.
l_order_header-purch_no_c = g_qals-prueflos. " <= lot
Partner data
l_order_partners-partn_role = 'AG'.
l_order_partners-partn_numb = g_qals-kunnr.
append l_order_partners to it_order_partners.
Order items => only one
l_order_items-itm_number = 10.
l_order_items-material = g_qals-matnr.
l_order_items-target_qty = 1.
append l_order_items to it_order_items.
Schedules for quantity
l_order_schdl-itm_number = 10.
l_order_schdl-req_qty = 1. " <= only 1 !
append l_order_schdl to it_order_schdl.
Conditions for value
l_order_conditions-itm_number = 10.
l_order_conditions-cond_type = 'PR00'.
l_order_conditions-cond_value = g_effort_sum.
l_order_conditions-currency = g_effort_unit.
append l_order_conditions to it_order_conditions.
BAPI to create sales order
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
ORDER_HEADER_IN = l_order_header
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = l_salesdocument
TABLES
RETURN = it_return
ORDER_ITEMS_IN = it_order_items
ORDER_ITEMS_INX =
ORDER_PARTNERS = it_order_partners
ORDER_SCHEDULES_IN = it_order_schdl
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN = it_order_conditions
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
if not l_salesdocument is initial.
order successfully created
message i001(00) with text-001 l_salesdocument.
endif.
endif.
<b>Reward points</b>
Regards -
Hi..
iam creating inquiry using bapi fm.iam trying to upload iam getting many errors.here is my code.
DATA:lt_header LIKE bapisdhd1 OCCURS 0 WITH HEADER LINE,
lt_inquiry_items_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
lt_inquiry_items_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
lt_header_x LIKE bapisdhd1x OCCURS 0 WITH HEADER LINE,
lt_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
i_salesdocnum like BAPIVBELN-VBELN.
lt_header-doc_type = 'ZSJ1'.
lt_header-sales_org = '3020'.
lt_header-distr_chan = '20'.
*lt_header-division = '00'.
lt_header-purch_date = '20081121'.
lt_header-purch_no_c = '7654321'.
*APPEND lt_header.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lt_header-doc_type
IMPORTING
output = lt_header-doc_type.
APPEND lt_header.
lt_header_x-updateflag = ''.
lt_header_x-doc_type = 'X'.
lt_header_x-sales_org = 'X'.
lt_header_x-distr_chan = 'X'.
*lt_header_x-division = 'X'.
lt_header_x-purch_date = 'X'.
lt_header_x-purch_no_c = 'X'.
APPEND lt_header_x.
*lt_inquiry_items_in-currency = 'USD'.
lt_inquiry_items_in-plant = '1000'.
lt_inquiry_items_in-material = '000000000000000188'.
lt_inquiry_items_in-itm_number = '000010'.
*lt_inquiry_items_in-exchg_rate = '1000000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lt_inquiry_items_in-material
IMPORTING
OUTPUT = lt_inquiry_items_in-material
APPEND lt_inquiry_items_in.
lt_inquiry_items_inx-updateflag = ''.
lt_inquiry_items_inx-ITM_NUMBER = 'X'.
lt_inquiry_items_inx-PLANT = 'X'.
lt_inquiry_items_inx-material = 'X'.
lt_inquiry_items_inx-itm_number = 'X'.
APPEND lt_inquiry_items_inx.
lt_partners-partn_role = 'AG'.
lt_partners-partn_numb = '0000001000'.
APPEND lt_partners.
CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
EXPORTING
SALESDOCUMENTIN = ' '
inquiry_header_in = lt_header
inquiry_header_inx = lt_header_x
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = i_salesdocnum
TABLES
return = lt_return
inquiry_items_in = lt_inquiry_items_in
inquiry_items_inx = lt_inquiry_items_inx
inquiry_partners = lt_partners
INQUIRY_SCHEDULES_IN =
INQUIRY_SCHEDULES_INX =
INQUIRY_CONDITIONS_IN =
INQUIRY_CONDITIONS_INX =
INQUIRY_CFGS_REF =
INQUIRY_CFGS_INST =
INQUIRY_CFGS_PART_OF =
INQUIRY_CFGS_VALUE =
INQUIRY_CFGS_BLOB =
INQUIRY_CFGS_VK =
INQUIRY_CFGS_REFINST =
INQUIRY_TEXT =
INQUIRY_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
read table lt_return with key type = 'E'.
WRITE : /5 lt_return-type, 20 lt_return-id , 30 lt_return-number , 50 lt_return-message.what is the error message you are getting
Regards
MD -
Complaint creation BAPI?
Hi
Could you please help me how to create a complaint against a sales order in CRM? Is there any BAPI available there?
Regards
SunitHi Sunit,
These should help you:
CRM_ICSS_CREATE_COMPLAINT
CRM_HH_CREATE_COMPLAINT
Thanks -
BAPI for cutomer/vendor creation
Dear Experts,
i searching for BAPI's to create customer and vendor .but i am getting online creation BAPI's only
please tell me if any BAPI's available to create Customer/vendor without online .Check the Program
RFBIKR00
for Batch Input Interface for Vendors and
RFBIDEK0
for Batch Input Interface for Customers.
Kanagaraja L -
Creation of inbound delivery without reference to a PO
Dear gurus,
Let's say that a normal inbound flow is something like this:
PO > Create inbound delivery with reference to PO > inbound shipment > Transfer Order > Confirm Transfer Order > Post Goods Receipt > Putaway
Issue:
My client does not want to create the PO because the PO serves no purpose to them. They want the process to start from inbound delivery.
Question:
1. Can a standalone inbound delivery be created WITHOUT reference to a PO ? If yes, please tell me the configuration and transaction code involved in order to create this standalone inbound delivery.
2. Based on standard configuration, can an inbound delivery be created automatically with reference to a material document (for eg MIGO Mvt Type 501). Once again, for this scenario, no PO should be involved. If yes, please tell me the configuration and transaction code involved in order to trigger the creation of this inbound delivery (I'm not looking for the answer of an inbound delivery creation BAPI to being triggered directly after the creation of the Material Document).
3. Based on standard configuration, can an inbound delivery be created manually with reference to a material document (for eg MIGO Mvt Type 501). Once again, for this scenario, no PO should be involved. If yes, please tell me the configuration and transaction code involved in order to create this inbound delivery.
Thanks.Hi Peter,
Actually, my intention is not really to create an inbound delivery based on a goods receipt. Since my client is not keen on the idea of creating a PO, I'm actually trying to provide alternatives and workarounds. From what I have gathered, I already know this much
-> An inbound delivery must be created with reference to PO unless Handling Unit Management is activated. If Handling Unit Management is activated, the creation of a Material Document will trigger the creation of an inbound delivery (I havent tested this out yet). Therefore, a PO will not be necessary in this case.
I was kind of expecting answers along this line, unless of course, something better pops up. Maybe someone out there may know something more.
As for Handling Units, I'm not familiar with it. Hopefully somebody can give me a good configuration guideline on what to do in order to activate it so that I can simulate the scenario of a Material Document triggering the creation of an inbound delivery (I'm not looking for the kind of answers which simply cuts and pastes the SAP HELP URL, 4.6C Handling Unit PDF, Best Practice Document and etc). Hopefully somebody out there can really give me a good guideline on how to do this.
Thanks.. -
Please find herewith my below code. This program i have created for transferring goods with mvt type '657' to '555' using BAPI 'BAPI_GOODSMVT_CREATE' for TCODE MB1A.
*& Report Z_BAPI_FOR_MB1A
REPORT Z_BAPI_FOR_MB1A.
Tables : mkpf, mseg, WB2_V_MKPF_MSEG2.
DATA:
it_mb1a LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
it_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
it_ex_headret LIKE BAPI2017_GM_HEAD_RET OCCURS 0 WITH HEADER LINE,
it_im_header LIKE BAPI2017_GM_HEAD_01, " OCCURS 0, " WITH HEADER LINE,
it_im_gmcode LIKE BAPI2017_GM_CODE, " OCCURS 0, "WITH HEADER LINE,
mat_doc type bapi2017_gm_head_ret-mat_doc,
mat_docyear type bapi2017_gm_head_ret-doc_year.
*data : lv_intense(01).
data : it_mseg like WB2_V_MKPF_MSEG2 occurs 0 with header line,
it_cost like csks occurs 0 with header line.
selection-screen begin of block a with frame title text-001.
parameters: p_date type sy-datum default sy-datum.
select-options: so_budat for WB2_V_MKPF_MSEG2-budat,
so_werks for WB2_V_MKPF_MSEG2-werks_i,
so_matnr for WB2_V_MKPF_MSEG2-matnr_i,
so_lgort for WB2_V_MKPF_MSEG2-lgort_i.
selection-screen end of block a.
select * from WB2_V_MKPF_MSEG2 into
table it_mseg where
budat in so_budat and
werks_i in so_werks and
matnr_i in so_matnr and
lgort_i in so_lgort and
bwart_i = '657'.
select * from csks into table it_cost
for all entries in it_mseg where
gsber = it_mseg-werks_i.
*Filling BAPI Header Tables
it_im_header-pstng_date = sy-datum.
it_im_header-doc_date = sy-datum.
it_im_gmcode-gm_code = '03'.
*Filling BAPI Item Tables
loop at it_mseg.
read table it_cost with key gsber = it_mseg-werks_i.
it_mb1a-material = it_mseg-matnr_i.
it_mb1a-plant = it_mseg-werks_i.
it_mb1a-stge_loc = it_mseg-lgort_i.
it_mb1a-batch = it_mseg-charg_i.
it_mb1a-move_type = 555. " '103'.
it_mb1a-entry_qnt = it_mseg-menge_i.
it_mb1a-costcenter = it_cost-KOSTL.
it_mb1a-gl_account = '530089'.
append it_mb1a.
clear it_mb1a.
clear it_cost.
endloop.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = it_im_header
goodsmvt_code = it_im_gmcode
* TESTRUN = ' '
* GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = it_ex_headret
MATERIALDOCUMENT = mat_doc
MATDOCUMENTYEAR = mat_docyear
tables
goodsmvt_item = it_mseg
* GOODSMVT_SERIALNUMBER =
return = it_return
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
if sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
endif.
But when i execute the above i am getting the following error.
Runtime Errors CALL_FUNCTION_UC_STRUCT
Except. CX_SY_DYN_CALL_ILLEGAL_TYPE
Date and Time 27.01.2009 14:43:06
Short text
Type conflict during structure parameter transfer at CALL FUNCTION.
What happened?
Error in the ABAP Application Program
The current ABAP program "Z_BAPI_FOR_MB1A" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
In the function "BAPI_GOODSMVT_CREATE", the STRUCTURE parameter "GOODSMVT_ITEM"
is typed in such a way
that only actual parameters are allowed, which are compatible in Unicode
with respect to the fragment view. However, the specified actual
parameter "IT_MSEG" has an incompatible fragment view.
Missing Handling of System Exception
Program Z_BAPI_FOR_MB1A
Trigger Location of Exception
Program Z_BAPI_FOR_MB1A
Include Z_BAPI_FOR_MB1A
Row 72
Module Name START-OF-SELECTION
Source Code Extract
Line SourceCde
42 lgort_i in so_lgort and
43 bwart_i = '657'.
44
45 select * from csks into table it_cost
46 for all entries in it_mseg where
47 gsber = it_mseg-werks_i.
48 *Filling BAPI Header Tables
49 it_im_header-pstng_date = sy-datum.
50 it_im_header-doc_date = sy-datum.
51 it_im_gmcode-gm_code = '03'.
52
53 *Filling BAPI Item Tables
54 loop at it_mseg.
55
56 read table it_cost with key gsber = it_mseg-werks_i.
57
58 it_mb1a-material = it_mseg-matnr_i.
59 it_mb1a-plant = it_mseg-werks_i.
60 it_mb1a-stge_loc = it_mseg-lgort_i.
61 it_mb1a-batch = it_mseg-charg_i.
62 it_mb1a-move_type = 555. " '103'.
64 it_mb1a-costcenter = it_cost-KOSTL.
65 it_mb1a-gl_account = '530089'.
66
67 append it_mb1a.
68 clear it_mb1a.
69 clear it_cost.
70 endloop.
71
72*>>>> CALL FUNCTION 'BAPI_GOODSMVT_CREATE'* 73 EXPORTING
74 goodsmvt_header = it_im_header
75 goodsmvt_code = it_im_gmcode
76 * TESTRUN = ' '
77 * GOODSMVT_REF_EWM =
78 IMPORTING
79 GOODSMVT_HEADRET = it_ex_headret
80 MATERIALDOCUMENT = mat_doc
81 MATDOCUMENTYEAR = mat_docyear
82 tables
83 goodsmvt_item = it_mseg
84 * GOODSMVT_SERIALNUMBER =
85 return = it_return
86 * GOODSMVT_SERV_PART_DATA =
87 * EXTENSIONIN =
88 .
89 if sy-subrc = 0.
90 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
91 EXPORTING
Can u explain why this is coming. Your valuable suggestions are required.
Thanks,
Jitesh M NairHi,
Try this Code.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = WF_HEADER
GOODSMVT_CODE = WF_CODE
TESTRUN = WL_space
IMPORTING
MATERIALDOCUMENT = FS_MATERIAL_DOC
TABLES
GOODSMVT_ITEM = INT_ITEM
GOODSMVT_SERIALNUMBER = INT_SERIALNO
RETURN = INT_RETURN1.
*VARIABLES for goods movement creation bapi
DATA : WF_HEADER TYPE BAPI2017_GM_HEAD_01,
WF_CODE TYPE BAPI2017_GM_CODE.
DATA : FS_MATERIAL_DOC TYPE BAPI2017_GM_HEAD_RET-MAT_DOC,
FS_SERIALNO TYPE BAPI2017_GM_SERIALNUMBER,
FS_ITEM TYPE BAPI2017_GM_ITEM_CREATE,
FS_RETURN1 TYPE BAPIRET2,
data declaration for goods movement creation bapi
DATA : INT_ITEM TYPE TABLE OF BAPI2017_GM_ITEM_CREATE,
INT_SERIALNO TYPE TABLE OF BAPI2017_GM_SERIALNUMBER,
INT_RETURN1 TYPE TABLE OF BAPIRET2.
Hope this will help.
Regards,
Rohan. -
Updating SAP fields through BAPI (which are not BAPI parameters)
Hello,
I need to update season and collection fields in sales order (AFS), these fields are not in sales order creation BAPI. Can I still somehow use them in extensionin as parameters?? How do we do it?? BAPI: /AFS/BAPI_SALESORD_CREATEFDATA
Also there is another BAPI /AFS/VBAK_SALESDOCUMENT_CHANGE which has these fields in ITEM_EX table (which is extension for item table provided by SAP), but this dosent update the sales order as well.
I would appreciate if anyone has a clue how to do this.
Thanks,
Amit./AFS/VBAK_SALESDOCUMENT_CHANGE
Append structure BAPE_VBAP
J_3ASEAN
/AFS/COLLECTION
/AFS/THEME
Append structure BAPE_VBAPX
J_3ASEAN CHAR1
/AFS/COLLECTION CHAR1
/AFS/THEME CHAR1
Table: ITEMS_EX
OPERATION 009
DOC_NUMBER 200000608
ITM_NUMBER 000000
MATERIAL 2000010022
UPDAT_FLAG I
SEASON C1
COLLECTION DAM
THEME SEG
Pass the season Fields through EXTENSIONIN structure to update data into tables.
STRUCTURE BAPE_VBAP
VALUEPART1 020000060800000000000000C1 DAM SEG
STRUCTURE BAPE_VBAPX
VALUEPART1 0200000608000000XXXX -
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,
KiranKiran,
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 -
How to pass multiple addresses per vendor in PO create BAPI?
Hi Experts,
We have a requirement to pass multiple addresses for one time Vendor in a PO creation BAPI. But when I checked BAPIs there is a table for partners and address details are not present in that (type BAPIEKKOP).
Is there any way where I can pass these multiple phone nos, emails, etc for one time Vendor through BAPI?
These multiple phone nos, emails etc should be available in ME23N -> Header -> Partners (VN) ->details in communication.
Please suggest a way to achieve this.
Thanks,
AnandHi,
Vendor address details are coming from Vendor data. While you checking the vendor details from ME23N it navigate to FK03.
So if need to change any thing any vendor address then you need do that first then create the PO.
This address not related to PO.
Thanks
Subhankar. -
Characteristics for Item of a Order in BAPI
Hi,
My requirement is to create a return sales order using a BAPI from a inbound file for AFS Material.
I am using BAPI BAPI_CUSTOMERRETURN_CREATE which has interface almost same as any other Sales Order creation BAPI.
When a AFS material data is entered in the sales order creation Transaction (VA01) we have option for Matrix Entry.
In my current system,
certain materials are configured to have characteristics XS, S, M.
Some MAterials have charectricits XS, SM, MD, LG, XL.
eg :
WE craete a BAPI with 2 items one with the first material and second with the second material.
We enter first material XS = 1, and M = 1 and thus total quantity in the first item = 2.
We enter Second material XS = 1, SM = 1, LG = 1, XL = 1 and thus total quantity in the first item = 4.
Coming back to my requirement I need to pass the above characteristics values into teh BAPI when I create a sales order so that the sales order thus created has items with the characteristics as mentioend above.
CAN ANYONE PLEASE HELP ME IN ACHIEVING THIS. "CREATE SALES ORDER WITH CHARACTERISTICS VALUES FOR ITEMS (QUANTITY) USING BAPI".Hi,
My requirement is to create a return sales order using a BAPI from a inbound file for AFS Material.
I am using BAPI BAPI_CUSTOMERRETURN_CREATE which has interface almost same as any other Sales Order creation BAPI.
When a AFS material data is entered in the sales order creation Transaction (VA01) we have option for Matrix Entry.
In my current system,
certain materials are configured to have characteristics XS, S, M.
Some MAterials have charectricits XS, SM, MD, LG, XL.
eg :
WE craete a BAPI with 2 items one with the first material and second with the second material.
We enter first material XS = 1, and M = 1 and thus total quantity in the first item = 2.
We enter Second material XS = 1, SM = 1, LG = 1, XL = 1 and thus total quantity in the first item = 4.
Coming back to my requirement I need to pass the above characteristics values into teh BAPI when I create a sales order so that the sales order thus created has items with the characteristics as mentioend above.
CAN ANYONE PLEASE HELP ME IN ACHIEVING THIS. "CREATE SALES ORDER WITH CHARACTERISTICS VALUES FOR ITEMS (QUANTITY) USING BAPI". -
hi ,
i transfered legacy data to sap system using bapi.
for that i used salesorder creation bapi.
'BAPI_SALESORDER_CREATEFROMDAT2'.
it is uploading my header data and item data .
even it set the values correctly.
but the above rfc not creating saledocument.
where i did mistake pls rectify my problem.hi michel i agree with u. i called 'bapi_transction_commit' first
after than i called bapi_saleorder_createformdat2.
i checked in debugging modein that function module.
it gives sy-subrc 4 for the below statement
fbgenmac 'BAPI_SALESORDER_CREATEFROMDAT2'.
how i will rectify this problem.
do u want the code.
i will send my code.
Edited by: kartik p on Sep 22, 2008 5:00 PM
Maybe you are looking for
-
How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes? I need step by step instructions for first-time sync with ipad mini. Thanks.
-
WLAN not working under Windows XP on Satellite U400
After installing Windows XP Recovery on my U400 the WLAN is not found. Under Win Vista it was working properly. There is no module listed under the device manager - searching after new hardware gave no results. It seems that the WLAN Interface is not
-
INTERNAL ORDER: "FI: Postings" is not allowed (ORD 90001)
Hi Gurus, I properly Configuration Internal Order but FI posting doesnu2019t allowed. Configuration Internal Order. 1. Creation of Order Types(Ex. Internal Order for Telephone), (Nos Range given Internal) 2. Creation of fie
-
What is Bonjour, should I use it???
Have had Mac for some time, just trying to learn the capacity of the box. Will Bonjour help me accomplish more in my day? Will it be worth my time to learn? Thanks Brett
-
Confused with updates which doesnt work
Hey everyone! im new here, and well is the first time also i use an ipod... all was cool with my lil new toy but then something hapened and im not really sure whats happening. Well i downlaoded the lastest update for ipod and well i have to fight wit