Skip to Content
0
Former Member
Jan 15, 2015 at 12:18 AM

Dump RPERF_ILLEGAL_STATEMENT on calling a if_http_client->send within a custom conversion exit

827 Views

Hi Experts,

I have a conversion exit on a field which initially used to invoke a RFC call connection of type "T" and retrieve certain data set/do some validations.

This is working perfectly.

In a separate development project scenario we are using the if_http_client(s) - send request to send and receive data from a web server using RFC connection type "G". As a standalone program its working fine but when it gets invoked via the conversion exit it results in the below dump.txt attached

Can you please let me know what is wrong and how I can overcome this situation, I have to use the web service scenario.

Some code snippet where the dump is happening >>>>>>>:

" Send the request to cardconnect server

>>>>>>>>>>>> CALL METHOD lv_http_client->send.

Flow:

ABAP Screen(s) data element -> Calls conversion exit -> calls few validations and a function to send and recieve some data from a web end point.. and on sending the dump happens.

ABAP dump:


Short text

Statement "RFC-SYSTEM RFC_ID id RFC_VALUE value" is not allowed in this form.

What happened?

Error in the ABAP Application Program


The current ABAP program "SAPLSHTTP" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

Error analysis

There is probably an error in the program

"SAPLSHTTP".

The program was probably called in a conversion exit

or in a field exit. These are implemented by

function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or

USER_EXIT_xxxxx_INPUT.

Conversion exits are triggered during screen field transports or

WRITE statements, field exits during field transports from the

screen to the ABAP/4 program.

In this connection, the following ABAP/4 statements are not allowed:

- CALL SCREEN

- CALL DIALOG

- CALL TRANSACTION

- SUBMIT

- MESSAGE W... and MESSAGE I...

- COMMIT WORK, ROLLBACK WORK

- COMMUNICATION RECEIVE

- STOP

- REJECT

- EXIT FROM STEP-LOOP

Moreover, conversion exits for output conversion

(implemented by function modules called

CONVERSION_EXIT_xxxxx_OUTPUT) do not allow

- MESSAGE E...

to be used.

Thanks,

Rupali

Attachments

dump.txt.zip (45.9 kB)