Application Development 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: 

BAPI_CONTRACT_GETDETAIL With RFQ Number

Former Member
0 Kudos

Hello guys!

I have a Z program that calls a BAPI_CONTRACT_GETDETAIL using a RFQ Number.

After a support package update in my SAP system, when I call the BAPI_CONTRACT_GETDETAIL with the RFQ Number

I Get the dump MESSAGE_TYPE_UNKNOWN.

Anyone knows how to fix it or a BAPI to get details of an RFQ? I think I can not use this bapi now.

Thank you!

Gabriel Graça.

6 REPLIES 6

kesavadas_thekkillath
Active Contributor
0 Kudos

Did you check for SAP Notes for this issue ?

You will find that note in this document link:[http://www.scribd.com/search?query=+48445901]

0 Kudos

Hi, I found the note Note 1013160 - BAPI_CONTRACT_GETDETAIL: MESSAGE_TYPE_UNKNOWN, but its not applicable in my system.

I enter in you link, but don't find the document.

Thank you for helping me!

0 Kudos

NEWs.

I have debugged this BAPI and I found this code (where the dump occurs, include LMEOUTP14 line 2364):

IF NOT l_ebeln IS INITIAL.

CALL FUNCTION 'ME_EKKO_SINGLE_READ'

EXPORTING

pi_ebeln = l_ebeln

IMPORTING

po_ekko = l_ekko

EXCEPTIONS

no_records_found = 1

OTHERS = 2.

l_doc-doc_type = l_ekko-bstyp.

IF l_doc-doc_type = cl_mmpur_constants=>mmpur_contract.

l_is_contract = cl_mmpur_constants=>yes.

ELSEIF l_doc-doc_type = cl_mmpur_constants=>mmpur_sag.

l_is_contract = cl_mmpur_constants=>no.

ELSE.

mmpur_message_forced sy-msgty sy-msgid sy-msgno sy-msgv1 "1476525

sy-msgv2 sy-msgv3 sy-msgv4.

RAISE EXCEPTION TYPE cx_mmpur_root. "^_1069602

ENDIF.

ENDIF.

This block of code checks the type of the document, if it's a contract or a SAG, but my document type is an RFQ (Quotation) so the message of the note 1476525 will get a DUMP.

In debug i change the document type to K (contract) just for test, and it's work normally, so I think if the RFQ document type was inserted in this standard code this problem can be solved.

But this is a standard code, so how can I fix it?

0 Kudos

hi,

can you check whether this include program has implicit enhancement available ?..try this

if not

you can also use BAPI_PO_GETDETAIL. for displaying RFQ details ......Can you check and let me know

thanks.

AV

0 Kudos

Can you go to the pattern and reinsert the code for the standard fm.

0 Kudos

Hello all!

The include have a implicit enhancement, so I fix this problem developing an implicit enhancement in the method.

But I try use the BAPI_PO_GETDETAIL and it works!!!

Thank you!!!

Bye