Skip to Content

Facing message issue for BAPI_PRODORDCONF_CREATE_TT

Hi,


Please help me for below issue:

I am using bapi BAPI_PRODORDCONF_CREATE_TT to confirmation for production order For Tcode- co11n.

But facing issue with messages as below mention:

Previously in RFC function module BDC were used.

So it was giving error message with

Messages class RU and number 110:

Confirmation saved (Goods movements: 1, failed: 0)

But when I am using BAPI instead of BDC it is giving only message

Confirmation of order 1357…. Saved.

In BAPI I am passing parameters:

ls_timeticket-orderid = g_aufnr. " Order
ls_timeticket-operation = g_vornr. " Order Item
ls_timeticket-fin_conf = g_endru.
ls_timeticket-pers_no = g_pernr.
ls_timeticket-clear_res = g_ausor.
IF g_menge CS '.'.
REPLACE '.' WITH ',' INTO g_menge.
ENDIF.
ls_timeticket-yield = g_menge.

APPEND ls_timeticket TO lt_timeticket.
* user is valid and authorized: call bapi to generate
* confirmation for production order
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
post_wrong_entries = l_post_wrong_entries
testrun = l_testrun
IMPORTING
return = ls_bapi_return
TABLES
timetickets = lt_timeticket
goodsmovements = lt_goodsmovements
link_conf_goodsmov = lt_link_conf_goods_mov
detail_return = lt_detail_return
EXCEPTIONS
error_message = 1.

IF lt_detail_return IS NOT INITIAL.
*** Commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ENDIF.

Thanks,

Priyanka Soni

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 10, 2014 at 12:47 PM

    Hi,

    please check in function module CO_RU_CONF_POST using break-point. There both messages RU100 and RU110 are close together:

    WHEN OTHERS.

    MESSAGE s100 WITH l_aufnr.

    ENDCASE.

    ELSE.

    IF gprot_flg IS INITIAL AND NOT flg_fkt IS INITIAL.

    MESSAGE i110 WITH cnt_retro_ok tmp_retro_err.

    ELSE.

    MESSAGE s110 WITH cnt_retro_ok tmp_retro_err.

    The code should be look like above. The reason fore the different messages should be found before this code or in the interface parameters.

    Regards,

    Klaus

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      you can prepare your BAPI data in SE37 test mode (F8). I know, it's a little bit time-consuming to prepare your test data, but nevertheless it's the best way to check the behavior of the BAPI. Set a break-point at the beginning of fm CO_RU_CONF_POST, check all fm parameters and the run of the fm.

      Regards,

      Klaus

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.