NUMCONVERT and DENOMINATO in bapi_quotation_createfromdata2.
When we use the bapi 'bapi_quotation_createfromdata2' create quotaiton, and have added the value for these fields,it can create quotation sucessfully,but the these two fileds value have not changed,so wish somebody can tell me how to pass the value ?
thks.
Samuel Liu
Hi,
We have also encountered the same problem while loading contract orders which is similar to quotation.
We have done a recording for the Tcode VA42 with some document numberand written the same BDC program for the (change the quotation) immediately after the BAPI function call.
So the target quantity got loaded properly through BDC.
Please revert if you need any help.
Regards,
Soumya.
Similar Messages
-
Specifying the numerator and denominato​r of the transfer function equation
hi
I am going to simulate the second odder problem. But I have problem when I try to define the 2nd odder transfer function
by using externally. I have attached the VI in this mail .
any information in this regard highly appreciated
thanking you
danushka
Solved!
Go to Solution.
Attachments:
second_order_systerm_8.2.vi 80 KBHello Danushka,
You would need to create a control from the transfer function. Then on the front panel, just expand the denominator column to get zero and first order for the denominator as shown here. Let me know if this helps.
Andy Chang
National Instruments
LabVIEW Control Design and Simulation -
Purchase Info Records ( ME11)
Hi all,
I am trying post Data for Purchase Info Records with Conditions data.
I am using a standard Batch Input Method ( LSMW).
Object 0060
Method 0000
Program Name RM06IBI0
Program Type B Batch Input
I am able to post data only for the condition type PB00. for other condition types FRC1 & FRA1 not able to post the data ( also session is not giving any error).
Therefore I am trying out witH BAPI option ( BAPI_PRICES_CONDITIONS),
when i try to test the BAPI i am getting an error "Record KNUMH = 0000668598,
VARNUMH = 000000000000000000000000000000: det. data missing ( Structue BAPICONDIT) .
i am passing below mentioned values to the structue BAPICONDIT
OPERATION 009
SD_DOC
ITM_NUMBER 000000
COND_NO 0000668598
COND_COUNT 02
APPLICATIO M
COND_TYPE FRC1
SCALETYPE F
SCALE_QTY 0.000
SCALE_VAL 1.000000000
CURRENCKEY USD
CURREN_ISO USD
CALCTYPCON C
COND_VALUE 2.000000000
CONDCURR USD
COND_ISO USD
COND_P_UNT 1
COND_UNIT KG
CONUNITISO KG
NUMCONVERT 1
DENOMINATO 1
BASE_UOM KG
BASEQTYISO KG
CONDITIDX 01
Please Suggest what else needs to be passed to get the BAPI working.
Regards,
Sriramfirst cretae the info records only.
cretae one more program with strctures like below
and pass the info record conditions.
if you use one program its cretae the only PB00, here the loop is one time.
you have to pass more than one its read the multiple records
YPUR_INFO_CONDITIONS Convert Conditions for Info Records
LIFNR C(010) Vendor
MATNR C(018) Material
EKORG C(004) Purch. Organization
WERKS C(004) Plant
YPUR_INFO_CONDITION_ITEM Convert Conditions Item records
MATNR C(018) Material
LIFNR C(010) Vendor
EKORG C(004) Purch. Organization
WERKS C(004) Plant
INFNR C(010) Purchasing Info Rec.
ESOKZ C(001) Info record category
KDATB C(008) Validity Per. Start
KDATE C(008) Validity Period End
KSCHL C(004) Condition Type
KBETR C(011) Condition rate
KONWA C(005) Condition currency
KPEIN C(005) Pricing unit
KMEIN C(003) Unit of measure -
Problem with Purchase Info Record Condition Data ( ME11)
Hi all,
I am trying post Data for Purchase Info Records with Conditions data.
I am using a standard Batch Input Method ( LSMW).
Object 0060
Method 0000
Program Name RM06IBI0
Program Type B Batch Input
I am able to post data only for the condition type PB00. for other condition types FRC1 & FRA1 not able to post the data ( also session is not giving any error).
Therefore I am trying out witH BAPI option ( BAPI_PRICES_CONDITIONS),
when i try to test the BAPI i am getting an error "Record KNUMH = 0000668598,
VARNUMH = 000000000000000000000000000000: det. data missing ( Structue BAPICONDIT) .
i am passing below mentioned values to the structue BAPICONDIT
OPERATION 009
SD_DOC
ITM_NUMBER 000000
COND_NO 0000668598
COND_COUNT 02
APPLICATIO M
COND_TYPE FRC1
SCALETYPE F
SCALE_QTY 0.000
SCALE_VAL 1.000000000
CURRENCKEY USD
CURREN_ISO USD
CALCTYPCON C
COND_VALUE 2.000000000
CONDCURR USD
COND_ISO USD
COND_P_UNT 1
COND_UNIT KG
CONUNITISO KG
NUMCONVERT 1
DENOMINATO 1
BASE_UOM KG
BASEQTYISO KG
CONDITIDX 01
Please Suggest what else needs to be passed to get the BAPI working.
Regards,
SriramHi Phemmy,
it is possible to create PO before info record .info record establishes the relationship between vendor and your particular material.
to answer your 2nd question:
it is possible to create inforecord automatically during PO creation. in the ME2N screen, in the material tab, put the material code. then go to item details.in the materail data tab, you will get infoupdate check it.and then inforecord will be created automatically.
Thanks
Nisha
Edited by: nishaprasad on Jan 14, 2010 11:29 AM -
Which BAPI to use for Quotation?
I found 2 FM in SAP.
BAPI_QUOTATION_CREATEFROMDATA and BAPI_QUOTATION_CREATEFROMDATA2.
Which is the latest and which is a better option for me?
I find BAPI BAPI_QUOTATION_CREATEFROMDATA is simplier.
Can someone advice.
Thanks
Bye
ColinI
Hi Colin
BAPI_QUOTATION_CREATEFROMDATA its easy to give few input parameters required while quotation creation
MPORTING
*" VALUE(ORDER_HEADER_IN) LIKE BAPISDHEAD
*" STRUCTURE BAPISDHEAD
*" VALUE(WITHOUT_COMMIT) LIKE BAPI_STAND-NO_COMMIT
*" DEFAULT SPACE
*" VALUE(CONVERT_PARVW_AUART) LIKE BAPIFLAG-BAPIFLAG
*" DEFAULT SPACE
*" EXPORTING
*" VALUE(SALESDOCUMENT) LIKE BAPIVBELN-VBELN
*" VALUE(SOLD_TO_PARTY) LIKE BAPISOLDTO
*" STRUCTURE BAPISOLDTO
*" VALUE(SHIP_TO_PARTY) LIKE BAPISHIPTO
*" STRUCTURE BAPISHIPTO
*" VALUE(BILLING_PARTY) LIKE BAPIPAYER
*" STRUCTURE BAPIPAYER
*" VALUE(RETURN) LIKE BAPIRETURN1 STRUCTURE BAPIRETURN
And wher as BAPI_QUOTATION_CREATEFROMDATA2 More input parameters required to create quotation with new release
IMPORTING
*" VALUE(SALESDOCUMENTIN) LIKE BAPIVBELN-VBELN OPTIONAL
*" VALUE(QUOTATION_HEADER_IN) LIKE BAPISDHD1 STRUCTURE BAPISDHD1
*" VALUE(QUOTATION_HEADER_INX) LIKE BAPISDHD1X STRUCTURE
*" BAPISDHD1X OPTIONAL
*" VALUE(SENDER) LIKE BAPI_SENDER STRUCTURE BAPI_SENDER OPTIONAL
*" VALUE(BINARY_RELATIONSHIPTYPE) LIKE BAPIRELTYPE-RELTYPE DEFAULT
*" SPACE
*" VALUE(INT_NUMBER_ASSIGNMENT) LIKE BAPIFLAG-BAPIFLAG DEFAULT
*" SPACE
*" VALUE(BEHAVE_WHEN_ERROR) LIKE BAPIFLAG-BAPIFLAG DEFAULT SPACE
*" VALUE(LOGIC_SWITCH) LIKE BAPISDLS STRUCTURE BAPISDLS OPTIONAL
*" VALUE(TESTRUN) LIKE BAPIFLAG-BAPIFLAG OPTIONAL
*" VALUE(CONVERT) LIKE BAPIFLAG-BAPIFLAG DEFAULT SPAC
Regards,
Seegal -
Dear Forum,
We are having random errors working with those Bapis.
We need to reasign materials from one salesorder / quotation to another and those bapis seemed to work fine, but latelly (specially after a hard testing) random errors may occur, having the following Return Code on the RETURN TABLE:
V1 392: "Material &1 does not exist in storage location &2 &3". and consecuentelly, error V4 248.
The problem is that I check table MCHB for material &1 on storage location &2 and param &3 and I can DO find it! and the second time I run the Bapi it successfully creates the document!
Do you any of you have a clue of what is going on and how can i solve this problem? A coworker of mines told me that maybe is a buffer issue but I couldn't find anything on internet about cleaning the buffers.
Thank you and
regards,
Juan PabloHi Ansberry Kevin,
Pass QUOTATION_PARTNERS-ITM_NUMBER = '0000000'.
And pass customers like this.
QUOTATION_PARTNERS-PARTN_NUMB = '1000000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = QUOTATION_PARTNERS-PARTN_NUMB
IMPORTING
OUTPUT = QUOTATION_PARTNERS-PARTN_NUMB -
How to Transfer Data(Email ID's) between a Function Module and a Report
Hi All,
I am trying to Create an RFC which internally Creates Quotation using BAPI_QUOTATION_CREATEFROMDATA2.This RFC also, has a structure having User's Email ID in the Importing Parameters. Once the QUOTE has been Created and while getting committed to database, a smartform Program is getting Triggered and the Output PDF file Generated by the Smartform is emailed to the User who has created the Quote.
As per My requirement, if we say that if i have created the quote using this RFC, then while Sending the email, I must be the sender and the email ID populated in the Importing Parameter of this RFC should be the reciever.
SAP Gurus, Can you please suggest me an alternative so that i can transfer the email id from RFC to the Smartform Driver Program and i can change the reciever details in the Smartform Logic.Also, Please note that, Multiple Users can use this RFC at the same timeHello Srikant,
Use export in FM and use import in the driver program. Try to export required data only.
Regards,
Subbu -
Error in updating pricing using BAPI_QUOTATION_CREATEFROMDATA2
Hi,
I am using the BAPI function module BAPI_QUOTATION_CREATEFROMDATA2. I am calling BAPI_TRANSACTION_COMMIT subsequently
I need to change an existing pricing condition ZMLT which is
automatically determined by the config while creating a sales quotation
Also I need to add ZFR1 and ZFR2 which are 2 freight condition types
(Condition Class = 'F')
Case 1
If I set the LOGIC-SWITCH-COND_HANDL = 'X', then I can correctly update
ZMLT using CONDITIONS_IN parameter, but I can't update ZFR1 and ZFR2
since they are freight condition types (as per Note 593246)
Case 2
If I set LOGIC-SWITCH-COND_HANDL = ' ', then I can correctly update
ZFR1 and ZFR2 freight condition types using the parameters
CONDITIONS_IN and CONDITIONS_INX. But when I try to update ZMLT, it
deactivates the existing line in the pricing and adds a new line with
same condition type ZMLT. Why does it do this...?
Here are the parameters that I am using as per Note 593246, Point 4
CONDITIONS_IN-ITM_NUMBER = '000010'
CONDITIONS_IN-COND_COUNT = '01'
CONDITIONS_IN-COND_TYPE = 'ZMLT'
CONDITIONS_IN-COND_VALUE = 12.00
CONDITIONS_IN-CURRENCY = ' ' (This is a percentage)
CONDITIONS_INX-ITM_NUMBER = '000010'
CONDITIONS_INX-COND_COUNT = '01'
CONDITIONS_INX-COND_TYPE = 'ZMLT'
CONDITIONS_INX-UPDATEFLAG = 'U'
CONDITIONS_INX-COND_VALUE = 'X'
CONDITIONS_INX-CURRENCY = 'X'
Please advise on this. Although the Total Value in the pricing is
correctly updated, why does it deactivate one line and insert a new one
for the same condition type.
Please note that my requirement is to add condition types ZFR1, ZFR2
and update ZMLT
Thanks and Regards,
Aditya PalekarHi!
You have very well prepared this example!
...and you analyzed it completely, this behavior is just the restriction you have to live with.
Old style condition handling couldn't change values, so workaround with adding new line and inactive existing line was done. New condition handling has restrictions, too - so no freights.
Why does it do this... it's a buggy feature or whatever you would like to call it. At least it was done by purpose, what internal reasons lead to this, I can't say.
One workaround would be possible for you: create quotation with cond_handl = A, change afterwards with cond_handl = B.
If you start with A = X and B = space or A = space and B = X should be the same in the end.
Regards,
Christian -
Prblm in Extnsn of VBAK : Quotation creation BAPI_QUOTATION_CREATEFROMDATA2
Hi ALL,
Problem in Extension of VBAK during Quotation creation Using BAPI BAPI_QUOTATION_CREATEFROMDATA2.
I have some Custom field of VBAK in Addional data tab B of transaction VA22.
I am populating these fields using BAPI_QUOTATION_CREATEFROMDATA2.
Passing table parameter EXTENSIONIN as shown below.
some of the fields are getting updated with these BAPI but some are not.
Say for example I added two custom field ZRORD and ZEON in table VBAK and Addional data tab B screen as well.
To get these field updated by BAPI I appended these two fields in structure VBAKKOZ ,VBAKKOZX and BAPE_VBAK.
Field ZRORD is getting updated but facing problem with ZEON.Please help.
For ur info,If I run transaction VA22 and enter some value in ZEON and click on SAVE then its getting updated.
w_bapiparex-structure = 'BAPE_VBAK'.
w_bape_vbak-zrord = 'xxX'.
w_bape_vbak-zeon = 'x'.
w_bapiparex-valuepart1 = w_bape_vbak.
APPEND w_bapiparex TO t_bapiparex.
RoshanHi singh,
Try with this code.
data: w_bapi_vbak_in type bape_vbakx.
w_bapi_vbak_in-zrord = 'X'.
w_bapi_vbak_in-zeon = 'X'.
w_bapiparex-structure = 'BAPE_VBAKX'.
w_bapiparex-valuepart1 = w_bapi_vbak_in.
append w_bapiparex to t_bapiparex.
Regards,
Raji. -
In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2'
Hi all,
In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2', I given all manditory parameters ( QUOTATION_HEADER_IN -import parameter and QUOTATION_PARTNERS - tables ).
But If I execute, its returning below messages.
VP 112 Please enter sold-to party or ship-to party
V4 219 Sales document was not changed.
Can u please tell me where to specify the sold-to and ship-to in this BAPI.
Thanks,
HP.Hi,
We have also encountered the same problem while loading contract orders which is similar to quotation.
We have done a recording for the Tcode VA42 with some document numberand written the same BDC program for the (change the quotation) immediately after the BAPI function call.
So the target quantity got loaded properly through BDC.
Please revert if you need any help.
Regards,
Soumya. -
Problem with "BAPI_QUOTATION_CREATEFROMDATA2"
Hi all
I am creating Quotation Using "BAPI_QUOTATION_CREATEFROMDATA2"
created quotation giving error of incomplition log of Shipping point ....
and if i try to enter shipping point trough va22 system gives message no possible entries
for this field...
Whether this is configuration problem or BAPI problem
..AshishHi,
Check settings in OVL2. We assign shipping points with combination of shipping conditions,loading group and delivery plant.
shipping point will be determined in sales document based on the OVL2 settings.
System takes shipping conditions from customer master / sales document type
Loading group from material master
Delivery plant from cusotmer/material/Customer material info record.
If any of these entries are missing, system will not determine shipping point automatically in sales document.
Regards,
Chandra -
BAPI_QUOTATION_CREATEFROMDATA2 pricing condition question
I am using XI to pass sales data from SQL Server into IDOC QUOTATION_CREATEFROMDATA201 to be processed by BAPI BAPI_QUOTATION_CREATEFROMDATA2 for the purpose of created new sales quotations.
I am having a problem with pricing. I am populating a PR00 condition value within QuotationConditionsIn and the corresponding entries in QuotationConditionsInx. The data makes it into the new quotation, but there is a problem...there are 2 PR00 conditions. An existing one created by SAP automatically and the one from the IDOC, which has the proper value but is in state "inactive".
Is there a way to tell SAP to use the incoming PR00 condition value and/or remove or deactivate the auto-generated PR00 condition record?
Any help would be greatly appreciated.
Thanks,
NathanHi Thomas!
Then we can go further in note 593246:
you should
1. Switch for activating the new condition item handling:
Import parameter LOGIC_SWITCH-COND_HANDLE = 'X'.
6. Addition of a condition with amount '0.00':
ORDER_CONDITIONS_IN-ITM_MUMBER = '000010'
ORDER_CONDITIONS_IN-COND_TYPE = 'PR00'
ORDER_CONDITIONS_IN-COND_VALUE = '0,0000'
ORDER_CONDITIONS_IN-CURRENCY = 'EUR'
ORDER_CONDITIONS_INX-ITM_MUMBER = '000010'
ORDER_CONDITIONS_INX-COND_TYPE = 'PR00'
ORDER_CONDITIONS_INX-UPDATEFLAG = 'I'
ORDER_CONDITIONS_INX-COND_VALUE = 'X'
ORDER_CONDITIONS_INX-CURRENCY = 'X'
Result: The condition is created with amount '0.00'.
Regards,
Christian -
Rewrite process and remove the call to f-54 and replace with bapi proces
Hi Gurus,
Please help me to find the soultion.
The root cause of this continual problem is the design and use of BDC session for F-54. Is there a redesign possible with ECC6.0?
I wanted to rewrite the process and remove the call to f-54 and replace with bapi process.
if this is now possible in ECC 6.0
The benefit would be to better control what PO was used in the DP recoupment.
Thanking you,
Raju Singhireddy.Hi Balaji,
Check this BAPI
BAPI_QUOTATION_CREATEFROMDATA
BAPI_QUOTATION_CREATEFROMDATA2
BAPI_CUSTOMERQUOTATION_CHANGE
Regards
Arun -
Create quotation and contact person
Hello Experts,
I have an <removed by moderator> requirement mentioned below:
Our client will send some Quotation information along with Contact Person data from a E-commerce portal to ECC using Webservice. And then I have to:
1) Create a Contact Person for Bill To Party Customer.
2) And when Contact Person gets created then assign this Contact Person to Bill To Party
3) create Quotation assigning this contact person.
All this processing has to be done in background mode.
Kindly provide any lead, <removed by moderator>
Thanks,
Message was edited by: Manish KumarHi Malik,
Please refer the below SCN links for creating Contact Person.
http://scn.sap.com/thread/159981
http://scn.sap.com/thread/1237915
To create quotation, use the BAPI - 'BAPI_QUOTATION_CREATEFROMDATA2'.
Hope, this helps. -
Get Pricing Condition Result: BAPI_QUOTATION_CREATEFROMDATA2
Hi Experts,
I need to get the pricing condition data in BAPI_QUOTATION_CREATEFROMDATA2, under the table QUOTATION_CONDITIONS_IN when in TESTRUN mode, is it possible?
I have tried in several time but it cannot work. It prompt me info message 'For the currency code MYR ALE communication is not allowed'. The reason I use test-run is because I don't want the quotation being created.
Or any other way for me to get all pricing condition based on material and ship-to party ??? Thanks.
Cheers,
IsaacHi Isaac,
Please create Bapi using your repective Progamme and try to give the Resepective conditions related to pricing from XML file.as you are saying you are doing this for testing.hope aware that while creation of BAPI if the certain condition are not matching or if the data is incomlepte you will get this kind of errors.
Please Reward If Really Helpful,
Thanks and Regards,
Sateesh.Kandula
Maybe you are looking for
-
How can I set default toolbar layout for all users in my system?
Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js. Now, I want to define default toolbar layout in
-
Chapters and Playlists.
I have a one piece video from P Pro. I have set the menus and chapters within that timeline. I have a button to play all and one for each chapter and after each chapter the end action to the menu. Each of the chapter sections works well. However whre
-
OVA8 - Automatic credit control
Dear All, Please let me know the usage of Max open item % and No of days in Open items . ( T-Code - OVA8) Regards, Prashant
-
Hi, In Info Package under Scheduler->Data Default Transfer, we set the datapacket size and number of packets per info idoc. So if we take the default setting (datapacket size = 1000, number of packets per info idoc = 10), and we got some 10 records t
-
Hi , I am having a quick question when we have created a Sales order with Order Type OR and I want to change it to ZOR. Is it possible. An urgen reply will be appreciated. I know Screen Squence Depends upon that but if one is the copy of other. Is it