2013 May 09 1:27 PM
Hi Friends,
I'm using the below method.
SELECT SINGLE *
FROM dd03l
INTO gw_data_ele
WHERE rollname = 'FILELEN' AND
fieldname = 'FILELEN'.
IF sy-subrc IS INITIAL.
MOVE-CORRESPONDING gw_data_ele TO gw_fieldcat.
APPEND gw_fieldcat TO gt_fieldcat.
CLEAR gw_fieldcat.
ENDIF.
gw_fcat-bukrs = pbukrs.
gw_fcat-zfieldname = 'FILELEN'.
gw_fcat-znumsep = 15.
*ZCOMMENT
*ZTAB_STRU
APPEND gw_fcat TO gt_fcat.
* Create a new Table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = gt_fieldcat
IMPORTING
ep_table = new_table.
* Create a new Line with the same structure of the table.
ASSIGN new_table->* TO <l_table>.
CREATE DATA new_line LIKE LINE OF <l_table>.
ASSIGN new_line->* TO <l_line>.
In the "new_table" given, the fileld lengths are different for two different clients.
For example.
In DEV client, the field length is N(10).
In QA, the field length is N(20).
Thanks in Advance.
Vallamuthu M
2013 May 10 3:53 AM
If Dev and QA systems are in same landscape then the repository should be same, if there are no modifications.
If Dev and QA systems are in same landscape then the repository should be same, if there are no modifications.
2013 May 10 12:53 AM
Hi Vallamuthu,
I think you should try to read from table DD04L instead, with only ROLLNAME = 'FILELEN'.
Cheers,
Custodio
2013 May 10 3:53 AM
If Dev and QA systems are in same landscape then the repository should be same, if there are no modifications.
2013 May 10 5:59 AM
Check the data element FILELEN( allowed size of file for saving to SAP database) in DEV and QAS.
Usually it should be with Numeric data type with a length of 10. output length also with 10.
If it varies then check with the SAP for solution if it is not, then your coding works fine.
Best regards,
Dhanamjaya
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |