Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for customer quotation

HariMaradana
Active Participant
0 Likes
1,575

Dear All,

I am using BAPI(Sales and Distribution->Sales->CustomerQuotation->CreateFromData2) in ECC 6.0.

Object Type: BUS2031

Method: CREATEFROMDATA2

Function Module for Outbound ALE: ALE_QUOTATION_CREATEFROMDATA2

ALE Message Type: QUOTATION_CREATEFROMDATA

Function Module: BAPI_QUOTATION_CREATEFROMDATA2

Requirement: When a Quotation is created or saved the IDOC has to be created. For this we have IDOC_OUTPUT_QUOTES. But I am using BAPI because the idoc will come back again from legacy system, for this we dont have any inbound idoc function module.

Problem: I have done all required settings like new process code, partner profiles and distribution model. But when i tried to issue the output in VA22 i am getting following error message:

No recipient found for message type QUOTATION_CREATEFROMDATA2 in the ALE model.

Please guide step by step how to use existing released bapis.

Thanks in advance

Cris

5 REPLIES 5
Read only

ferry_lianto
Active Contributor
0 Likes
1,170

Hi Cris,

I think you can use the standard message type ORDERS and IDoc type ORDERS05 for a quotation as well.

Regards,

Ferry Lianto

Read only

0 Likes
1,170

Hi,

you mean to say i need to use the following steps

MessageType: QUOTES

Process Code: SD12

FM : IDOC_OUTPUT_QUOTES

I did above steps and created outbound IDOC, But i am unable to create inbound IDOC by we19 tcode.

Can you please guide me for inbound idoc for quotations.

Thanks

Cris

Read only

Former Member
0 Likes
1,170

Are you maintaining Control records properly in WE19,Check your control record has green color in WE19.

WE19-> Second screen - > IDOC->Edit control record

reward Points if it is helpful

Thanks

seshu

Read only

ferry_lianto
Active Contributor
0 Likes
1,170

Hi Cris,

Please use try this for inbound partner profile setup ...

MessageType: ORDERS

Process Code: ORDE

FM : IDOC_INPUT_ORDERS

and create an IDoc with refers to an existing quotation (from outbound IDoc) by populating segment E1EDK02-QUALF = '004' (Vendor Quotation) and E1EDK02-BELNR = <quotation number>.

Regards,

Ferry Lianto

Read only

0 Likes
1,170

Hi

I have created outbound idoc and i have seen below data

segment E1EDK02-QUALF = '004' (Vendor Quotation) and E1EDK02-BELNR = <quotation number>.

as you provided earlier and i am trying to create inbound idoc with ref of successful outbound idoc but i am getting lot of errors when i run in foreground.

What i observed in creation of inbound idoc segments data is not correctly mapping for example condition types when it is zcmp it is taking edi1...similarly for all fields.

Please guide me need i change the data records.

Thanks

Cris