How to pass scale basis in bapi 'BAPI_PRICES_CONDITIONS'
Hello,
how can i pass the scale basis quantity and amount in multiple level (ex - scale basis quantity1, amount1 ... quantity2,amount2.....)through bapi 'BAPI_PRICES_CONDITIONS'
Thanks
satya
Hello,
I got the solutions. Below are the codes for enetring scale quantity and amounts in multiple level. Here i have used for three level, giving IS_BAPICONDQS-line_no = '0001' , IS_BAPICONDQS-line_no = '0004' , IS_BAPICONDQS-line_no = '0007'. you can use as per yours requirements.
is_BAPICONDIT-scaletype = 'A'. "A-from and B-to
is_BAPICONDIT-scalebasin = 'C'. "C-Quantity and B- Value scale
(use these two line in is_BAPICONDIT )
IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0001'.
IS_BAPICONDQS-scale_qty = '15'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency = '71'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.
IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0004'.
IS_BAPICONDQS-scale_qty = '25'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency = '96'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.
IS_BAPICONDQS-operation = '009'.
is_BAPICONDQS-cond_no = '$000000001'.
IS_BAPICONDQS-cond_count = '01'.
IS_BAPICONDQS-line_no = '0007'.
IS_BAPICONDQS-scale_qty = '30'.
*IS_BAPICONDQS-t_unit_iso = 'VIA'.
IS_BAPICONDQS-currency = '106'.
IS_BAPICONDQS-CONDCURR = 'USD'.
APPEND IS_BAPICONDQS to IT_BAPICONDQS.
CLEAR IS_BAPICONDQS.
Then pass the internal table IT_BAPICONDQS to the BAPI 'BAPI_PRICES_CONDITIONS'.
Similar Messages
-
How to pass delivery date through BAPI while creating a sale order
Dear frndz,
I am using 'BAPI_SALESORDER_CREATEFROMDAT1'
to create a sale order .
I don't have any problem..
But I have to pass schedule line delivery date through this bapi .
I used REQ_DATE in structure BAPISCHDL.
But I can' t get it.
Through which parameter can i meet this..
The sale order should be created line item wise along with my delivery date..
Any suggestions...
regards.
sivaDear frnd,
Danq for your response..I can't use DLV_DATE for this requirement..
But I used REQ_DATE in the structure BAPISCHEDULE .
I came to know that the problem i faced previously was only
internal data conversion.
Now am able to pass my delivery date..
so I am closing the thread..
Regards.
siva -
How to pass header text in bapi for sale order
hai to all
i am using BAPI_SALESORDER_CREATEFROMDAT2 to create sale order
i can find order_text in tables parameters for creating item texts
but in my senario i have to maintain header text
please advice me how to proceed
rgds
vijayHi Vijay,
As I mentioned <b>it is very much possible to create sales order header text with this BAPI only</b>.
Just check out following working code:
REPORT yab_testso .
DATA: orderheaderin LIKE bapisdhd1,
orderitem TYPE TABLE OF bapisditm,
wa_orderitem TYPE bapisditm,
orderitemx TYPE TABLE OF bapisditmx,
wa_orderitemx TYPE bapisditmx,
orderpart TYPE TABLE OF bapiparnr,
wa_orderpartner TYPE bapiparnr,
ordertext TYPE TABLE OF bapisdtext,
wa_text TYPE bapisdtext,
orderret TYPE TABLE OF bapiret2,
wa_ret TYPE bapiret2,
lv_lines type i.
orderheaderin-doc_type = 'ZZOR'.
orderheaderin-sales_org = 'SS01'.
orderheaderin-distr_chan = 'SH'.
orderheaderin-division = 'ST'.
wa_orderpartner-partn_role = 'SP'.
wa_orderpartner-partn_numb = '1000000342'.
APPEND wa_orderpartner TO orderpart.
wa_orderpartner-partn_role = 'WE'.
wa_orderpartner-partn_numb = '1000000342'.
APPEND wa_orderpartner TO orderpart.
wa_orderitem-itm_number = '10'.
wa_orderitem-material = '000000111000000185'.
wa_orderitem-target_qty = '10'.
APPEND wa_orderitem TO orderitem.
wa_text-text_id = '0012'.
wa_text-langu = 'E'.
wa_text-text_line = 'Test for text creation'.
APPEND wa_text TO ordertext.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
order_header_in = orderheaderin
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT =
TABLES
return = orderret
order_items_in = orderitem
ORDER_ITEMS_INX =
order_partners = orderpart
ORDER_SCHEDULES_IN =
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
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 = ordertext
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =
describe table orderret lines lv_lines.
READ TABLE orderret into wa_ret index lv_lines.
IF wa_ret-type = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / wa_ret-message_v2.
ENDIF.
Hope it helps.
Regards,
Akshay Bhagwat
Note: Pls reward points if this helps you. -
How to pass the BAPI Parameter
Hi,
I can able to connect the Sap using sap .net connector in vb.net. also using SAP .Net Connector wizard in C#.net,i can able to create Dll files of BAPI .also when im adding the dll reference in visualbasic.net it has been added successfully.but after i dont know how to pass the parameter to BAPI function and how to get the return records from BAPI.Can any one guide me how to do this in Visualbasic .net?Yes. Thankx . Actualy problem is that SAP .net connector 1.0.1 is not uninstalled completely on my system .
Now i can able to see all the function using filter in server explorer.Now i selected BAPI_CUSTOMER_GETLIST.Can you guide how to (code)get the datas into ADOtable or any recordset in Visual basic.net.
Please give me the example program .
Thanks in advance
Message was edited by: Prakash N
Message was edited by: Prakash N -
How to pass parameters to function module
Hello,
Can someone suggest how to pass parameter values to BAPI function module from a .NET client? I am using the BAPI_PO_GETDETAILS module and want to pass required parameters to get the item details. Also, please let me know which table should I refer to when retrieving the result. I am using sap .net connector 3.0.
Thanks in advanceHi unosino,
at http://www.se80.co.uk/sapfms/b/bapi/bapi_po_getdetail.htm you can see, that you have to pass po_header and po_address to the function.
You can do that with the nco3 like this:
IRfcFunction rfcFunction = destination.Repository.CreateFunction("BAPI_PO_GETDETAILS");
rfcFunction.SetValue("po_header", /* your value */);
rfcFunction.SetValue("po_address", /* your value */);
rfcFunction.Invoke(destination);
kind regards
christian
Edited by: chrislind on Nov 11, 2011 2:47 PM -
Passing Error message to BAPI Structure in RFC
Hi Experts,
I would like to know how we pass error message to BAPI structurre in RFC?
Plz some one give the details about how we handle the errors.
Thanks in advance.Like already mentioned before, every Standard SAP BAPI, has an export or tables parameter which is called something like RETURN with structure BAPIRET2. In here, you can store all the messages that are generated during the BAPI Call.
However, if you also want to catch errors like system exceptions and communication errors, you will have to add these exceptions manually:
EXCEPTIONS
SYSTEM_FAILURE = 1 MESSAGE RFC_MESS
COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
However, not sure if this addition works when calling BAPI from NON-sap application.
Declaration:
DATA: RFC_MESS(128). -
How to download ECC scale basis into CRM system?
Hi All,
Please share / suggest how to download ECC defined scale basis into CRM system (ECC to CRM)?
We used DNL_CUST_CND & DNL_CUST_CNDALL. Do we need to update any Tables in these Objects?
Thanks and Regards,
Fedor.Hi,
you can create your own condition object(r3ac5), and in the new object > (tables/structures) tab change the condition table (A-)
please be noted that the table (KONW) which pass the scales, exist by defualt
u have to execute your object to replicate the data, and to be konwn your 2 objects which had run just for customzing not for data
feedback me if u have any Q.
الحمد لله الذي علمنا
samer shamandi -
How to pass table values in Create Bapi Wrapper
Hi All,
Am using create BAPI Wrapper in that how to map the fields inside BAPI Import Structure .
Thanks&Regrads,
ArunHi,
Am using standard RFC " QIBP_INSPCHAR_SETRESULT " for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
In QIBP_INSPCHAR_SETRESULT am passing inupt
INSPLOT LIKE QALS-PRUEFLOS
INSPOPER LIKE QAPO-VORNR
INSPCHAR LIKE QAMV-MERKNR
INSPSAMPLE LIKE QASV-PROBENR
CHAR_RESULT LIKE BAPI2045D2
so i want to know how i can pass 1 . CHAR_RESULT structrue values
2. INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
in SDOE_WB
Pls explain how to create BAPI Wrapper for this and how to map details. -
How to passing lowercase values to RFC/BAPI using webdynpro for JAVA
Hi Exerts,
When we sending values to RFC/BAPI through webdynpro (JAVA), the values are sent in capital (uppercase) letters to ECC.
So if we fill xxxx, it is send like XXXX. Why? and how to avoid this?
Thanks in advance,
JoeriHi,
There could be two possibility if you are storing this value in ABAP table.
1. You are entering value in UPPERCASE in your webdynpro application.
2. The data stored in ABAP table, converts value in small to upper case.
1. Can you tell me how you are passing this value, is user entering value in some input field which is binded to some context and this value are you passing to RFC/BAPI...???
Or else before passing value to RFC/BAPI you can use toLowerCase string function and the npass this value to RFC/BAPI
e.g String name = wdContext().currentContextelement().getName().toLowercase();
Now pass this name to RFC/BAPI is should go as lowercase only..
This is from webdynpro java side..
2. If you are storing this value in ABAP table, check the domain/type of variable in ABAP table for which you are storing the value. Ask ABAPper, so that this value are stored in small case letter.
There is one tick in domain which you need to remove so that it stores in lower case. I dont have exact information but you can consult this with ABAPer.
Hope this information helps guy ..!!!!
Regards,
Jigar -
How to create new scale basis for shipment costs without modification?
Hi,
at the moment I am trying to create a new scale basis for shipment costs.
It is not a problem to create a new scale basis in table view V_TVFRFQ. The creation of an Append structure in the communication structure KOMK is easy, too.
The problem is the following:
When creating a scale for a scale basis with transaction VS01, the system picks some screens out of function group V57S. For my new scale basis there is of course no screen in this standard function group.
So my question:
How to create/generate a screen to create scales for my new scale basis without a modification of function group V57S?
To me it makes no sense that SAP offers a possibility to create customer owned scale bases but then gives the customer no possibility to create an input screen for that scale basis without modification. Therefore I think it should be possible to generate such a screen in some way.
If you have some idea, let me know.
Thanks!
ChristianHi Christian,
We are currently facing exactly the same problem you described in your message in January 2009. I see that you have marked this as "answered", and was wondering if you would mind explaining how you overcame this issue?
Any assistance would be hugely appreciated.
Many thanks,
Kaushik -
How to pass Input file data into BAPI BAPI_0035_CREATE
Hi Friends,
Need a help.. First time i am developing a report using this BAPI BAPI_0035_CREATE..
actually i am uploading the Input file data using this BAPI.. my input file having 14 fields.. this 14 fields are corresponding into difeerent strutures and tables to this bapi.. so after completion GUI_UPLOAD , how to Pass this internal table into this BAPI strutures and tables for creating the GRANTS in the system.
Regrads,
Kumar.Execute the function module "BAPI_0035_GET_DETAIL" passing Grant number to get an idea about what needs to be passed into "BAPI_0035_CREATE".
-
Urgent : How to use pricing scale base type "G" in CRM?
Hi Gurus
We are facing a problem regarging scale base type G which is scale based on a formula in SAP ECC side. I one of our Z condition type wea re using scale base type G and using a formula 901 to calculate pricing in SAP R/3.
But scale base type "G" is not supported in CRM as the entry is not there in /SAPCND/T681VS and we could not find any ways to include it in CRM. We even tried by entering the entried in the table by debug method but then the records, specialy the supplement record, are not replicating correctly in CRM from ECC.
So for time being we changed the scale base type to C from G in ECC side.
Can you please guide me if there is any way to use scale base type G in CRM? Or what can be the way around to use scale based on formula in CRM ?
Is it possible to change the scale base type while the records are getting replicated to CRM?? But how will it work then.
This is very urgent.
An useful answer will be highly appreciated.Hello Singamshetty and Micheal,
We are facing exact same issue. Problem is that formula 901 does not get called in ECC with scale base type = 'c' in condition type ZSH1. Because of this, order and billing document in ECC have wrong condition value and then order document in CRM also gets wrong value once the billing document is saved.
This is highly critical issue as it's a big $ loss. Any expert, please suggest how to correct it?
Thanks
Sandeep -
How to pass the value from Sub report to main report
I have un report(mainreport) within a subreport(subreport).
With reporting services, how to pass the value from Sub report to main report?
thanksHi Alebet,
With reporting services to pass values from sub report in to main report is not supported directly.
But there are some workarounds through which you can get this .
There are two ways to get this.
1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
2- Using this temporary tables data write some Scala function in the data base.
3- Now in your main report query return this scala function as a column.
4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
This will definitely work fine as i have done some report in this way.
Another way of doing is that
1- prepare another data set with the same query as in sub report in the data tab.
2- then refer this 2nd dataset in your main report .
But better way will be the top one.
Anyway please let me know if you get the solution.
Thanks
Mahasweta -
How to pass multiple items in Adobe forms to a Webservice
Hello, all.
I'm trying to create Interactive Form to create a sales order in R/3.
Please somebody tell me how to pass the multiple line item data to the Webservice.
For example, the Webservice I'm using was generated from BAPI_SALESORDER_CREATEFORMDAT2.
The BAPI has tables for item data in sales order.
However, when I create the form with table for item data, the only last line of the table is passed to the Webservice.
How can I create Adobe forms to pass multiple line item to the Webservice.Hi,
I have worked on the same application for the creation sales order and has used the same BAPI.
You should first extract the data from the table node through the method "get_static_attributes_table" and take all the result into a table of type same as element of that particular node.
Now pass the data from this table into the internal table of type as mentioned in the BAPI using work area.
And pass this table to BAPI.
This will work .
Regards,
Shruti -
Hi Experts,
I'm inserting new line items in Contract (Outline Agreement) using BAPI_CONTRACT_CHANGE,
my question is how to pass the value of Serial No. to BAPI_CONTRACT_CHANGE in my custom program. I cannot insert new line item if i cannot pass the serial number to the structures in the BAPI.
Thanks in advance.
ireneHi,
Please let me know how it got solved. I have a same requiremet.
Maybe you are looking for
-
Where is the Thunderbolt to FireWire adapter promised for July?
Still not available to order?
-
Itunes on Windows laptop need to transfer to Mac Book Pro
I am new to my Mac Book Pro (4 days) and love it. However, my iTunes library is on my Windows laptop and I want to know how to transfer my iTunes account (and the songs that I have bought via iTunes) to my new Mac. There are only purchased tracks on
-
How to upgrage report files from VS2005 to VS 2010
Hi all, we have some VS 2005 report files( 10.2 ) which need to be edited by VS 2010. The code files behind seem to have different formats. How to convert a old report file to its new format? thanks, Clara
-
A print-out of Purchase History
Hi, I have 27 "pages" of Purchase history in my iTunes account, Is there any way I can print that out? I obviously don't want 27 pages (which are small) but a list of "full pages" regards
-
When I close FF 3.6.22 I am not given the option to save multiple tabs.
I run FF both at home and at work. I am still running 3.6.2x in both places because I've not been happy with the later versions. At work this morning, FF restarted and updated to 3.6.22. When I went to close FF at the end of the day, with my usual 5