2013 May 06 11:59 AM
Hi Expert,
This issue is with ALV Oops, while calling the method set_table_for_first_display, am passing the is_variant, i_save = 'X'.
Please find below code
*-----------------------------------------------------------------------
INITIALIZATION.
*-----------------------------------------------------------------------
G_REPID = SY-REPID. "Report
X_SAVE = 'A'. "The user may save all types of a layout
GS_VARIANT-REPORT = G_REPID.
CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = '/CRA/S_HOUSEHOLD'
IS_VARIANT = GS_VARIANT
I_SAVE = X_SAVE
IS_LAYOUT = GS_LAYOUT
I_DEFAULT = 'X'
CHANGING
IT_OUTTAB = GT_HEAD_OF_HOUSEHOLD.
This code is working fine in Development system but not working in quality system.
when i am passing blank structure to IS_VARIANT, its working fine in YEF system.
Could you please let me know, if i need to pass the blank structure to IS_VARIANT???
Or do i need to do something else.
I have debugged and found that
Set_table_for_first_display internally calls LOAD_VARIANT which finally calls
IMPORT LT_DBFIELDCAT TO RT_DBFIELDCAT
LT_DBSORTINFO TO RT_DBSORTINFO
LT_DBFILTER TO RT_DBFILTER
LT_DBLAYOUT TO RT_DBLAYOUT
FROM DATABASE LTDX(LT)
ID RS_VARKEY.
So this the final code which cause Dump in Quality system.
Please suggest me!!
Thanks and Regards,
Abhishek
Hi Friend,
That is a example only,ME2L Tcode,how to transport layout.
And How to enable that option for custom report ,follow this link
You have to set i_save option 'A'.
http://www.kodyaz.com/articles/enable-sap-users-save-own-alv-layout-variants.aspx
Thanks
Gourav.
2013 May 06 12:10 PM
Hi,
Did you transport All components properly ? like structure & others.
In Quality or production ,Is there any default layout ? That may become invalid for this case.
Check it.
Thanks
Gourav.
2013 May 06 12:15 PM
Hi,
All objects are transported to Quality system.
In fact there is one valid entry in table LTDX in both Development and Quality system. From where the IMPORT statement is taking the data.
Yes default layout /STANDARD is there.
Thanks and Regards,
Abhishek
2013 May 06 12:21 PM
Hi,
May be the default layout creating problem here.
Try to create a layout or Transport layout from DEV to Quality from menu .
Manage layout > select the layout >transport .
Try it.
Thanks
Gourav.
2013 May 06 12:30 PM
Hi,
Could you tell me where is the Layout Menu i mean in SE38 report ??
Thanks
Abhishek
2013 May 06 12:42 PM
Hi,
Run ME2L Standard report.
then from menu ,settings ,click on layout >manage.
Then from menu,choose layout >transport.
Thanks
Gourav.
2013 May 06 1:09 PM
Hi,
Are you sure , i need to run ME2L T code to know the Layout for ALV,
Tcode : ME2L is for Purchase Order by Vender.
Thanks and Regards,
Abhishek
2013 May 06 1:14 PM
hii,
try it with your report from setting--->layouts---> layout management .
select your layout and transport your layouts also.
This may be because of your layouts.
Thanks
2013 May 06 1:17 PM
Hi Friend,
That is a example only,ME2L Tcode,how to transport layout.
And How to enable that option for custom report ,follow this link
You have to set i_save option 'A'.
http://www.kodyaz.com/articles/enable-sap-users-save-own-alv-layout-variants.aspx
Thanks
Gourav.
2013 May 06 1:33 PM
Hi Gourav,
Actually m working in CRM 6.0. Its being upgraded to 7.0. So i dont have access to ME2L.
Also i have changed the i_save value to 'A' in debugger screen.
But still its dumping.
Thanks
Abhi
2013 May 06 1:43 PM
Hi,
I was talking about ECC 6.0,I have no idea about CRM.
Wait for any other's reply or search SAP NOTES.
Thanks
Gourav.
2013 May 06 1:50 PM
Hi,
But ALV works same in both the system.
Issue is that the Variant is not getting load even though it is there in table LTDX.
Thanks and Regards,
Abhishek
2013 May 07 5:07 AM
Hi
I am not able to save layout in TR as i am getting an error message " Selection Contains layouts which cannot be transported..
Thanks and Regards,
Abhishek
2013 May 07 5:14 AM
Hi,
Follow this steps to transport layout.
http://www.saptechnical.com/Tutorials/ALV/Transport/Index.htm
Thanks
Gourav.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |