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

Exit for - FLB2

Former Member
0 Likes
790

Hello friends,

I have a requirement to capture some data into a Custom table when the Transaction FLB2 is executed. I used the exit in the program - RFEBLB20 - EXIT_RFEBLB20_001. this exit is triggered and the data in updated in my custom table.

However the issue is this data needs to be updated only when, IF vgtyp = 'BAI2'. I am unabel to capture the value in VGTYP. ANy suggestions on this or any more exits that could be used to serve this purpose.

Thanks,

Rajeev.

Hello friends,

I have a requirement to capture some data into a Custom table when the Transaction FLB2 is executed. I used the exit in the program - RFEBLB20 - EXIT_RFEBLB20_001. this exit is triggered and the data in updated in my custom table.

However the issue is this data needs to be updated only when, IF vgtyp = 'BAI2'. I am unabel to capture the value in VGTYP. ANy suggestions on this or any more exits that could be used to serve this purpose.

Thanks,

Rajeev.

3 REPLIES 3
Read only

brad_bohn
Active Contributor
0 Likes
684

You can use a field symbol to access the value of the record format from the main program.

Read only

Former Member
0 Likes
684

Thanks Brad for the sugestion.

The valus in the main program is in the field VGTYP and I dont want to chnage anything in the main program. i want to captue this in a exit called from a main program. Can I still use the field symbol and if yes can you please exppain in detail how?

Rajeev...

Read only

brad_bohn
Active Contributor
0 Likes
684

DATA: lv_fieldname TYPE fieldname,
      lv_vgtyp     TYPE vgtyp_eb.

FIELD-SYMBOLS: <lfs_vgtyp> TYPE vgtyp_eb.

lv_fieldname = '(RFEBLB20)vgtyp'.
ASSIGN (lv_fieldname) TO <lfs_vgtyp>.

IF sy-subrc EQ 0.
  lv_vgtyp = <lfs_vgtyp>.
ENDIF.

if lv_vgtyp eq '...'.
* do something
endif.