cancel
Showing results for 
Search instead for 
Did you mean: 

FM for Sales Pricing via PS

atul_rajmane
Participant
0 Kudos

Dear All,

I would like to generate the Draft Sales Quotation via Sales Pricing functionality using customized report transactions.

I have created a report which shows all approved PS project projects which have DIP profile and Sales area defined at the Project definition level. It has billing WBS at which cost has been estimated in easy cost planning. The business requirement is when then press a button in the report, it should generate a quotation (i.e. similarly One press icon in Sales Pricing icon in CJ20N, and generate sales pricing quotation) without even going in CJ20N.

Based on my research I understand that we can use BAPI_SALESORDER_SIMULATE but not able to know which are parameters to pass into this BAPI as I didn't see any input parameter for WBS or DIP profile in this BAPI.

Would like to know if it's the correct approach or is they any other FM to generate sales quotations via sales pricing scnario.

Kindly advise.

Regards

Atul Rajmane

View Entire Topic
venkateswaran_k
Active Contributor

Hi Atul,

Please use the following BAPI

BAPI_QUOTATION_CREATEFROMDATA2

It has the table parameter BAPISDITM. In that you have option to pass WBS and DIP profile as below

  • DLI_PROFIL - DIP profile
  • WBS_ELEM - WBS element

Regards,

Venkat

BalaAP
Active Contributor

Sir, You are the great...

atul_rajmane
Participant
0 Kudos

Dear Venkat,

Thanks a lot for providing input for the DIP Profile. I have passed the same along with Billing WBS in BAPISDITM. On execution, I am still getting below error

Now, I am creating a Quotation from CJ20N - Sales Pricing View I am able to do the same without any error? But via BAPI I am not able to proceed due to the above error. Could you advise if something is missing as an input parameter?

(DIP Project eventually brings the material in sales quotation which has added under billing WBS in easy cost planning)

Regards

Atul Rajmane

Ryan-Crosby
Active Contributor
0 Kudos

The error message indicates that you are likely missing the item category designation on your line item(s).

atul_rajmane
Participant
0 Kudos

Dear Ryan,

Thank you for inputs.

My concern is when I am saving quotations in the front-end transaction via CJ20N, I am able to do it without any error. Based on DIP profile materials get determined and same updated in quotation with the correct item catergoy with no such error.

But, same when I am doing via the above BAPI in the background I am getting the above error message. Do I need to pass even the Item category or there is any specific missing parameter in this BAPI which I need to pass?

Kindly advise if possible.

Regards

Atul Rajmane