cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

Is it possible to find the name of the Adobe Form which has been called while the control is still in Interface of the Form.

My case is that 1 Interface has been used for multiple forms. I want to make certain change in the Interfcce which should be Form specific.

ags

0 Likes
View Entire Topic
Surendra_Karma
Participant

It can be done in below manner. You have to put this code in CODE INITIALIZATION of form interface.
lv_form will give you Adobe form name.


DATA(lv_fnumchar) = substring( val = sy-repid

off = strlen( sy-repid ) - 8
len = 8 ).
CONDENSE lv_fnumchar.
SELECT SINGLE name FROM FPCONTEXTI INTO @DATA(lv_form)
WHERE fmnumber = @lv_fnumchar.
IF sy-subrc = 0.
"do whatever you wanna control here.
ENDIF.