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

Problem with modify - user exit

Former Member
0 Likes
1,006

Hi

I have created user exit for FI01 transaction (Include pro. name : ZXF12U01)

below is my code. I am not able to modify I_bnka.

I_BNKA is import parameter of FM EXIT_SAPLBANK_001.

* No messages when BATCH-input is running!
  CHECK sy-binpt IS INITIAL.

* Check bank number is not empty .
  IF  i_bnka-banks = 'MY'  AND i_bnka-bnklz IS INITIAL.
       i_bnka-bnklz = i_bnka-BANKL.

Modify i_bnka.
ENDIF.

Error message is

Include ZXF12U01
"I_BNKA" is not an internal table "OCCURS n" specification is missing.

pls help me

2 REPLIES 2
Read only

Former Member
0 Likes
712

Hi,

I_bnka is not an internal table. this is just a structure. We cannot write the MODIFY statement on a statement.

Remove the MODIFY statement and activate the code.

Now, you execute the transaction by placing a break point and see the results. It will be populated properly.

The above structure is declared in IMPORT parameters not in TABLES tab.

Regards,

Venkatesh

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
712

Helloo,

Please keep this thing in mind you can not modify the import parameters.Secondly its just work area not an internal table so dont use Modify.

I think you need to modify the data.If you dont fine any user exit for the same go for implicit enhancement and modify the data.

'

In case of any more help please let me know.

Regards

Nabheet Madan