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

Layout issue when copying from Standard program

Former Member
0 Likes
1,746

Dear all,

As per the requirement I copied FBL5N to ZFBL5N and made the required changes to the program. Its working perfectly fine.

There is Layout option in the selection screen :

The F4 help is not working, but in standard program its working.

When I run ZFBL5N - Save the layout - it goes and save against the standard program name ? Any idea how can we fix it ?

Many Thanks

Senthil

6 REPLIES 6
Read only

Former Member
0 Likes
1,273

Hi Senthil,

I think you need to check 2 things:

1. Did you check all the boxes when copying.

2. Most probably when creating customized tcode in se93, have you written the program name as RFITEMAR by mistake?

Regards

Purnand

Read only

0 Likes
1,273

Hi,

Please note: May be you have created ZFBL5N for the same program as that of FBL5N. If a program have 2 tcodes, they share layouts.

Regards

Purnand

Read only

SujeetMishra
Active Contributor
0 Likes
1,273

Hi,

check the report id in your z program..may be it's not calling your report id.

Regards,

Sujeet

Read only

0 Likes
1,273

Guys,

Thanks for your reply.

This was an existing program.

when I debug and see - its correctly calling the Z program id only. ( I  e ZRFTEMAR....)

Senthil

Read only

0 Likes
1,273

Hello Senthil ,

Must say a challenging task , debugged for  hours but failed to get any relevant data .

I noticed this thing in my system also.

After debugging I  found that in program LSKBSF08 at line number 107 ,

MOVE-CORRESPONDING LS_VARKEY TO LTDXT lies the main problem .

Actually this LS_VARKEY must contain the name of Program for whose the corresponding Layout Variant must be maintained in the Database Table LTDXT ( Table for maintaining Variant Layout with corresponding Program name.

You can see by putting Breakpoint in this line that when you Execute ZFBL5N then  LS_VARKEY value is set to RFITEMAR instead of ZRFITEMAR , here is the main issue.

In Program LSKBSF08 itself you can see that there is a call to FM LT_DBDATA_WRITE_TO_LTDX which triggers during Variant Layout save option.

So I searched in ZRFITEMAR whether any REPID type Variable has been maintained with Default value as RFITEMAR for storing Program name , I got the below results :

But there also I maintained values properly and No positive result

Might be something related with the usage of Standard LDB DDF

Waiting for some Expert ABAP Developer's Comment on your Query

Read only

0 Likes
1,273

Hello Senthil ,

While copying RFITEMAR to ZRFITEMAR , many Includes and Function Pools must have been copied to Z Includes and ZFunction Pools.

Out of them Check for Function Pool SAPLFI_ITEMS it might have been copied to SAPLZFI_ITEMS,

check the same in SE38 ,

Inside that Check Include LZFI_ITEMSTOP and search for RFITEMAR and you can see

c_program_ar              type syrepid       value 'RFITEMAR'

Change here also and check.

And in Include LZFI_ITEMSF01 also ,

IF SY-CPROG NE 'RFITEMAR' AND SY-CPROG NE 'RFITEMAP' .