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

Submit-layout Variant

Former Member
0 Likes
3,056

Hi all,

i have saved one layout of ALV in variant as 'test'.In selection screen one of the parameter is layout name. When i press F4 help i can see that layout name 'test'. In some other program im trying to call this program using this value. But it is returing an error message telling that no layout found. Could you please help me to reslove this issue.

ie

SUBMIT ztest

WITH layout = '/test'.

15 REPLIES 15
Read only

Former Member
0 Likes
2,092

anu,

are you sure about the name passed?

/text and text => the / is not there in your F4

or its a typo?

Read only

0 Likes
2,092

Along with layout name '/' will come automatically in F4 help.

Read only

0 Likes
2,092

Hi..

Check table LTDX

User specific layouts and standard layouts have naming conventions.

Make sure you give correct one by checking table entry

Read only

0 Likes
2,092

The difference is User specific layouts doesnt start with /.

Read only

0 Likes
2,092

I have given layout name correctly. please suggest any other alternative.

Read only

0 Likes
2,092

>

> Along with layout name '/' will come automatically in F4 help.

dats what.. you have to put the '/' and should be in CAPS

example:

SUBMIT ztest_submit "VIA SELECTION-SCREEN ==> you can use this to see it on the screen to confirm whats passed.
        with p_gjahr = 2008
        with p_perio = 05
        with p_vari  = '/RTRTEST' "=> / added

works perfectly fine with me.

Edited by: Soumyaprakash Mishra on Dec 11, 2009 4:51 PM

Read only

0 Likes
2,092

I tried giving this also .. Tha is not working..

SUBMIT ztest

WITH layout = '/TEST'.

Read only

0 Likes
2,092

correct your error which resides probably between seat back and keyboard

Regards,

Clemens

Read only

0 Likes
2,092

use FMs like /OSP/REPORT_GET_ALV_VARIANT

and pass the report name... it will fetch you the user INDEPENDENT variants only..

you can cross check with what exactly is the name coming

Read only

0 Likes
2,092

>

> I tried giving this also .. Tha is not working..

> SUBMIT ztest

> WITH layout = '/TEST'.

I m confused..

can u please put the exact code and also look for data truncation in layout name.

I take that you have a parameter name as +Layout+ in selection screen

Layouts are client specific 😛 ..Check the client in which u r running the report

Edited by: A J Raj on Dec 11, 2009 5:10 PM

Read only

0 Likes
2,092

yes you are right . I have a parameter with name layout.

As per my observation LTDX table is having entry with '/TEST' . But its value of filed HANDLE is 'SERV'. I guess if the value of field HANDLE is INST then it doesnt have any prob. But after saving layout value of HANDLE has set as 'SERV'. please let me now ur thoughts

Read only

0 Likes
2,092

I am not sure about this..but there is a field "INACTIVE" in LTDX table .Please check it..

May be we can trace the report and check the where clause on table LTDX table..

Read only

Former Member
0 Likes
2,092

Pass the vairant name in CAPS -- '/TEST'.

Nag

Read only

0 Likes
2,092

I have pass it as caps only.

Read only

Clemenss
Active Contributor
0 Likes
2,092

Hi Anu,

if you save variant as 'test' and try to use '/test' I can understand the system. I wouldn't fin d it either

Regards,

Clemens