2013 Oct 09 5:31 AM
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
2013 Oct 09 5:46 AM
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
2013 Oct 09 5:56 AM
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
2013 Oct 09 6:28 AM
Hi,
check the report id in your z program..may be it's not calling your report id.
Regards,
Sujeet
2013 Oct 09 6:33 AM
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
2013 Oct 09 10:32 AM
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
2013 Oct 09 12:46 PM
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' .