2020 Mar 03 2:26 PM
Hi All,
is there a field in BAPI_QUOTATION_CREATEFROMDATA2 FM which I can use to create a quote and pass the value of the delivery plant at header level?
Thanks
2020 Mar 03 9:36 PM
As far as I know - there is no such option in standard.
But why do you need this? DWERK is used as input help when you create new items, with this BAPI you do not use screen logic, what is the problem to set the delivering plant on item level for all items when you create the quotation (populating QUOTATION_ITEMS_IN-PLANT and QUOTATION_ITEMS_INX-PLANT)?
As far as I know - there is no such option in standard.
But why do you need this? DWERK is used as input help when you create new items, with this BAPI you do not use screen logic, what is the problem to set the delivering plant on item level for all items when you create the quotation (populating QUOTATION_ITEMS_IN-PLANT and QUOTATION_ITEMS_INX-PLANT)?
2020 Mar 03 9:36 PM
As far as I know - there is no such option in standard.
But why do you need this? DWERK is used as input help when you create new items, with this BAPI you do not use screen logic, what is the problem to set the delivering plant on item level for all items when you create the quotation (populating QUOTATION_ITEMS_IN-PLANT and QUOTATION_ITEMS_INX-PLANT)?
2020 Mar 04 8:07 AM
The problem is that I need to use code that set the delivery plant in ===>at header level<===
I can set it in item level
2020 Mar 04 8:24 AM
mike.senikoglou1 as I mentioned - there is no such field in the BAPI, the plant on header level is used in dialog processing, it is not even retained after you save a sales document where you have specified the delivering plant on header level.
With this BAPI you do not use dialog processing, therefore you do not need to set delivering plant in the header.
In one customer system I have seen a z-field for delivering plant in VBAK, which made very little sense to me, but they used this custom field to populate some data on item level via an exit and also for some reporting purposes (of course, the reports displayed incorrect information). If you really have to create a custom field and update it via this BAPI - refer to SAP note 143580 - Info SD BAPIs and customer enhancement concept.
I assume that you are a developer and not a functional consultant, which is why I would recommend speaking with your functional SD colleague. He/she can explain to you with an example how this field is used. Most likely there is a misunderstanding what you have to achieve via the custom code, asking the requestor for clarifications is a good approach, it decreases the chances of developing something that is not needed.
2020 Mar 04 8:46 AM
You are correct delivery plant is not saved. Any idea as to what fields of the BAPI I can use for Order Quantity and Amount in line items?
2020 Mar 04 8:58 AM
mike.senikoglou1, amount is a bit complicated topic, you use pricing conditions to influence the amount. Some conditions are modifiable in the sales document, some are not. This depends on the configuration done by the functional consultant, the processing status of the document, whether the document was created as reference and so on. You need to speak with the functional consultant to understand which pricing conditions exactly you have to use to influence the price via this BAPI. In general, if you do not specify conditions when you create the quotation, the prices will be determined automatically from the existing condition records.
Order quantity - this you influence from the schedule line data (QUOTATION_SCHEDULES_IN and QUOTATION_SCHEDULES_INX). Read the BAPI documentation from transaction BAPI, it is very detailed.
And you really need to request a proper development specification from your functional consultant. It is inefficient to ask for help in an online forum for something that should have been made available to you before you start with any development tasks.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |