cancel
Showing results for 
Search instead for 
Did you mean: 

Field /1BCDWB/DOCPARAMS does not exist

Former Member
0 Kudos

Dear all,

I'm currently working on a Adobe form.

I need to know the language of the form which is contained in the variable /1BCDWB/DOCPARAMS-langu of the interface.

But when I add the parameter /1BCDWB/DOCPARAMS to the Input parameters of the code initialization, I get the following error :

"Field /1BCDWB/DOCPARAMS does not exist".

Then, How to use the form language parameter ?

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

jagdishwar_b
Active Participant
0 Kudos

>>But when I add the parameter /1BCDWB/DOCPARAMS to the Input parameters of the code initialization, I get the following error :

>>"Field /1BCDWB/DOCPARAMS does not exist".

If you want to access the values of /1BCDWB/DOCPARAMS from within Code Initialization block of the interface object, its not allowed (atleast as of now).

you can access all other import parameters that are added by you, the global data etc in the Code Initialization.

if you really want to access the value of /1BCDWB/DOCPARAMS-langu inside Code Initialization, a possible workaround may be: to use abap print program

to maintain an additional input parameter e.g. UserSelectedLanguage

fill its value from /1BCDWB/DOCPARAMS-langu to UserSelectedLanguage before calling the fm_name,

add UserSelectedLanguage in the input parameters of the code initialization and access this value there.

a similar thread was posted few days back:

regards,

BJagdishwar.

OttoGold
Active Contributor
0 Kudos

Check report FP_TEST_00 for example.


    fp_docparams-langu   = p_langu.
    fp_docparams-country = p_countr.
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams = fp_docparams
        textlines         = itf.

Regards Otto