cancel
Showing results for 
Search instead for 
Did you mean: 

Get Adobe form name inside Interface using Code

06-23-2011 4:27 PM
agnihotro_sinha2 Active Contributor
2430 views 2 comments Go to solution
0 Likes
SAP Managed Tags
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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

hello,

add additinal import parameter (form name) which you'll pass to your ADS form

Answers (1)

Answers (1)

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.