Skip to Content
0
Former Member
Aug 04, 2014 at 03:55 PM

BAPIRET2 empty message and type

930 Views

Hi Experts,

I'm very new to ABAP (and I like it 😊).

Below my first steps in ABAP:


DATA : answer         TYPE        BAPIRET2.
DATA : mmarket TYPE BAPI2042_MAINTAIN_MM.
mmarket-transaction_type = '100'.
mmarket-partner = '10000'.
mmarket-start_term = '04082014'.
mmarket-end_term = '04082014'.
mmarket-amount = 1000000.
mmarket-currency = 'EUR'.
mmarket-interest_rate = '1.37'.
CALL FUNCTION 'BAPI_FTR_CREATEFROMDATA'
EXPORTING
MONEYMARKET = mmarket
* FOREIGNEXCHANGE =
COMPANYCODE = 'DE01'
PRODUCTTYPE = '510'
IMPORTING
RETURN = answer
* TRANSACTION =
* COMPANYCODE =
EXCEPTIONS
ERROR = 1
OTHERS = 2.

IF SY-SUBRC <> 0.
* Implement suitable error handling here
WRITE : / 'Fehler im System'.
ENDIF.

WRITE : / answer-message.
WRITE : / answer-type.
WRITE : / answer-id.
WRITE : / answer-number.
WRITE : / answer-log_no.
WRITE : / answer-log_msg_no.
WRITE : / answer-parameter.
WRITE : / answer-row.
WRITE : / answer-field.


I want to call the BAPI and fill in the form.

answer-message and answer-type is empty. It seems that there is no error but shouldn't I get a success message like "S" in Type?


It is possible that the valuation area can not be filled with this BAPI?


Thanks for your help.

Xaavian