Issue in creating sales doc wirth reference contract
hi friends,
my requirement is to create a sales order with reference to contract.i had tried it by using bapi 'BAPI_SALESORDER_CREATEFROMDAT2' but i am getting message like this
Sales dcoument:
S SALES_HEADER_IN has been processed successfully
S SALES_ITEM_IN has been processed successfully
W The sales document is not yet complete: Edit data
i am getting sales document number but when am trying to open the docu i am getting error message saying that
sales docu is not in database or has to be archived.
please share the valuable information if u have send me sample code.
please help.
regards sravani.
Hi ,
It is happening because you sales order will not get the created using the BAPI till you have any warning messages/error message as you can see your data is incompete you need to pass the complete data for this ...Till the time warning issue is resolved you will not have the sales order created ...
Try to craete a sales order munually see what is that you are feeding manually to remove the incompletion log and then pass the same data to BAPI ....
You should not have any warning or error as in background you do not have anyone to take a decision on that warning messages .
Thanks,
Anjaneya .
Similar Messages
-
Issue in creating sales order with ref contract(quantity)
hi friends,
I am creating sales order with reference contract using
"BAPI_SALESORDER_CREATEFROMDAT1"
my issue is with quantity field when i am entering quantity as 1 then it is taking as 0.001
i am also declaring its unit field too but there is no change.
in my program i am taking quantity as parameter.
field description is like this Order qty in sales units - 00009001 corresponds to 9.001
is there any chance of changing the quantity .
please help.There is another similar post...look at those comments. Consider the data types in use...in true numeric fields with decimals, the decimal is implied, so look at how you're sending and/or converting any value.... For instance, if I were sending data to a quantity field described as curr 15, decimals 3, I would expect that I needed to send 1.000 (or perhaps 1000, depending on my testing) in the input to get a quantity of 1.
-
Create sales order with reference to contract
Hi,
I have to create sales orders with reference to a contract. When I do the recording on lsmw the line items in the sales order are assigned a number from sap. I need to keep the line item numbers the same as per the contract.
Any advice appreciated.
Regards,
Warren.found answer
-
BAPI to create Sales Order with reference to contract
Hi All,
I am trying to create Sales Order with reference to Contract, but although the
order gets created, it does not contain reference document information.
The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.
Would someone know which parameters I have to papulate,or have any other suggestion
how to accomplish my task?
Thank you so much,
MayankHi - Try Filling these three fields in the Item details.
REF_DOC
REF_DOC_IT
REF_DOC_CA
Reward points if helpful -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
FM to create Sales Order from reference billing document
Hi,
I need to create a sales order from a reference billing document. Please tell me if there is any function module/BAPI to do that.
Thanks in advance for the help
Regards,
VarunHi
<b>SD_SALES_DOCUMENT_COPY</b> copy Sales Doc into new one with the required Sales Doc Type (VBAK-AUART) for further creating.
<b>SD_SALES_DOCUMENT_SAVE</b> create Sales Doc from the copied document
create subsequent document
REPORT Z.
data: w_auart like vbak-auart, "current SalesDoc type
w_auara like tvak-auara, "Subsequent SalesDoc type
w_vbak like vbak.
parameter p_vbeln like vbak-vbeln.
at selection-screen on p_vbeln.
SELECT SINGLE auart FROM vbak into w_auart
WHERE vbeln = p_vbeln.
if sy-subrc <> 0.
message e398(00) with 'Sales Doc' p_vbeln 'not found'.
endif.
start-of-selection.
SELECT SINGLE auara FROM tvak into w_auara
WHERE auart = w_auart.
if sy-subrc <> 0 or w_auara is initial.
message e398(00) with 'Subsequent type not defined for' w_auart.
else.
1. copy
CALL FUNCTION 'SD_SALES_DOCUMENT_COPY'
EXPORTING
i_auarn = w_auara
i_vbeln = p_vbeln.
2. paste
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
IMPORTING
evbak = w_vbak.
3. commit
COMMIT WORK.
4. report
write: / 'Sales Doc', w_vbak-vbeln, 'created.'.
endif.
regards
vinod -
BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER
Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil -
Create sales order with reference to 10 quotation
Create sales order with reference to 10 quotation I want to put all quotation means take reference in one sales order how I can do it because when tried va01 and taken reference of question it allow to put only one question number how can I do it for multiple question
AhmedHi Raj,
If you come back to initial screen after coping the first quotation ,then system will ask you whetehr to save or cancel the data,if we select save then it will be saved immediately,else it will cancel.So ,it is not possible to copy more than one quaotation in standard SAP.The only option is to deveop a BDC with the help of abaper.
We can only create this when header data is same in all the quotations.
Regards,
Pasapula.
Edited by: Pasapula on Jul 24, 2009 9:48 AM -
Creating Sales Order with reference to Quotation from different Sales Area
Hi,
I would like to inform you that our customer (GE ENERGY OC) from Europe have a requirement where they want to create sales orders with reference to quotation that is from different sales area. Standard SAP functionality doesn't allow this feature, hence requesting your help to give me an update in this regard.
Please treat this as urgent as they have to do business cutover where they are in the process of completing open sales orders.
Thanks
Ashfaq
Mobile: +91-98857-07558
E-Mail: [email protected]Hi RadhaKrishna,
In standard system it is not possible to create sales order from a quotation whose sales are is different.
However I think this is possible by using some user exit in sales order. I have never tried this.
Regards
srini -
Create sales order with reference to archived billing
Hello,
Is it possible to create sales order with reference to archived billing?
Thanks in advance and kind regardsHi,
I think it is possible only return sales orders.
regards
karunakar -
BAPI: Create Sales order with reference to Quotation
Hi ...
I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2 and
i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
..Thanks..
..AshishHello,
nice to see that this has already been solved.
But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
Mine looks like this:
* Update Flag
ls_header_inx-updateflag = 'I'.
* Angebotskopf einlesen
SELECT SINGLE * FROM vbak INTO ls_vbak
WHERE vbeln = iv_vbeln
AND vbtyp = lc_vbtyp.
IF sy-subrc <> 0.
EXIT.
ENDIF.
* Auftragskopf setzen
ls_header_in-doc_type = ls_vbak-auart.
ls_header_in-sales_org = ls_vbak-vkorg.
ls_header_in-distr_chan = ls_vbak-vtweg.
ls_header_in-division = ls_vbak-spart.
ls_header_in-req_date_h = ls_vbak-VDATU.
ls_header_in-ref_doc = ls_vbak-vbeln.
ls_header_in-refdoc_cat = 'B'.
* Angebots-Partner einlesen (Nur AG und WE)
* Auftrag anlegen
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
order_header_in = ls_header_in
* order_header_inx = ls_header_inx
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* testrun = 'X'
* CONVERT = ' '
IMPORTING
salesdocument = ev_vbeln
TABLES
return = et_return
* order_items_in = lt_items_in
* order_items_inx = lt_items_inx
order_partners = lt_partners
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* 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 = .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
Thanks and regards
Markus Armbruster -
Bapi To create sales order with reference of sales order.
Hi all,
Having requerment To create sales order with reference of onother open sales order.
Example: there open sales order which having qty of 20 for that 10 qty as already billed , for remain 10 qty as to create the new sales order with reference to the excsiting one.
Please guide me how do it.
Regards,
Santosh
Edited by: santosh jajur on May 15, 2010 11:47 AMHi Santhosh,
check this thread.
Re: Open Sales Order Migration
The last part of the thread says done.
hope you get a hint from that.
Also this one
Re: how to create open sales order using BAPI....?
http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
Regs,
SuryaD.
Edited by: SuryaD on May 15, 2010 9:09 PM
Edited by: SuryaD on May 15, 2010 9:10 PM
Edited by: SuryaD on May 15, 2010 9:11 PM -
Issue when creating sales order with Sold-to/Ship-to Party's state
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Issue when creating sales order with Sold-to/Ship-to Party's state tax
Hi All,
we have issue while creating Sales Order with picking up of State tax
for Ship-to-party & Sold-to-party.
<b>When we create a sales order, for the sold to party 140052732 and
ship to party 140052733 it is picking state tax. Which should not
suppose to pick? Because the partner is marked as tax exemption</b>.
Can any body tell me how can we solve this issue!
Why this is happening!
How to make not to pick tax when it is marked for tax exemtion.
As i am not Functional guy i am not aware what is happening here!
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi Deep
What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
If so go and check the condition record meant for it. Follow the following steps
1) Go to Sales order
2) Select the line item for which the state tax is being picked.
3) In the condition tab select analysis.
4) In Analysis you shall find the condition type meant for state tax.
5) See which condition record has been found.
6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
7) If wrong correct it.
8) If anything else come back to the post and inform the details
Thanks
Regards
Sunil -
Create sales document with reference document
Hi Experts:
In the case of create sales document ,i set that create sales order with reference a billing document.
But i have a problem,the Pricing procedure in billing document is A, after coping from it,the sales document
Pricing procedure is A also,it can't work using Pricing Procedure Determination in config.
Actually,i want the sales document using a new pricing procedure.
Pls help to give me some advice.
Thank you very much.
Best Regards!Go to VOFA, select your billing type and execute. There maintain a different document pricing procedure from what you maintained for your sale order type in VOV8.
Next go to OVKK and assign the new pricing procedure to the document pricing procedure of what you maintained in VOFA
Finally, go to VTAF, select your source billing document type and order type and execute. There assign routine 053 for the first "DataT"
Now try how it works.
thanks
G. Lakshmipathi
Maybe you are looking for
-
[SOLVED] Problem with MPD and ALSA
Hello, I'm having problems with mpd using alsa output. My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group. But then mpd can't open the alsa device. If I tell mpd
-
In the iPod touch 5th generation can I put a wifi card like Vodafone wifi cards I put a wifi card in my iPad 3G and it works what about ipod ?
-
Bug Report: Static LOV's and PDF Printing with Tabular Forms
I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a r
-
hi i have a problem with my itunes there's no text on the command bars i want to save my contacts and i cant do it help me please
-
HT5312 I tried to download a song but Apple is saying I have not used this computer before
I tried to download a song but Apple is saying I have not used this computer before and that in order to downloas the song I need to "verify my identity" by answering some securiry qiestions. This is wrong because I have downloaded scored of songs on