2010 Jun 17 9:15 AM
Hello Gurus,
SELECT-OPTIONS:
so_objid FOR HR_SOBJID MEMORY ID pwn.
CALL METHOD /gkv/cd01_cl_ausndb_tools=>ausndb_read
EXPORTING
i_rng_hr_sobjid = so_objid.
i_rng_hr_sobjid structure:
SIGN S_SIGN
OPTION S_OPTION
LOW HR_SOBJID
HIGH HR_SOBJID
the to tables "i_rng_hr_sobjid" and "so_objid" have the same structure, even though i can not activate the source (Error: The table types are incompatible). Has anyone a solution for this problem without having to use a temporary table for the conversion.
Regards,
Ioan Constantin.
2010 Jun 17 9:54 PM
You can try passing the SELECT-OPTION table body by using the [].
Like:
SELECT-OPTIONS:
so_objid FOR HR_SOBJID MEMORY ID pwn.
CALL METHOD /gkv/cd01_cl_ausndb_tools=>ausndb_read
EXPORTING
i_rng_hr_sobjid = so_objid[]. " <<
Regards,
Naimesh Patel
Ok, so i have to create a table type in the DD representing the range of BUDAT and use that table type in the interface.
Hans
2010 Jun 17 9:49 AM
Select options have a default header line. But, in OOPS only table types can be used. Use an internal table with appropriate table type, instead of directly using the select option.
2010 Jun 17 12:54 PM
Hi,
i've also the issue with the SELECT-OPTIONS so_budat (for instance) and a call of a METHOD.
I want to interface the select-option to the method and use it as you normally would do, so :
WHERE BUDAT in SO_BUDAT
Is there a standard and good working way to use the power of select-options and object oriented programming ?
regards,
Hans
2010 Jun 17 12:58 PM
Hello,
well i think not. Like using Dynpros in OO ... it doesn't work. OO and conventional programming don't like eachother in ABAP
Regards,
Ioan Constantin.
2010 Jun 17 1:11 PM
Ok, so i have to create a table type in the DD representing the range of BUDAT and use that table type in the interface.
Hans
2010 Jun 17 1:26 PM
Yes, thats right, or you could use a Functionmodule instead of a Method
Have a good day
2010 Jun 17 9:54 PM
You can try passing the SELECT-OPTION table body by using the [].
Like:
SELECT-OPTIONS:
so_objid FOR HR_SOBJID MEMORY ID pwn.
CALL METHOD /gkv/cd01_cl_ausndb_tools=>ausndb_read
EXPORTING
i_rng_hr_sobjid = so_objid[]. " <<
Regards,
Naimesh Patel
2010 Jun 18 8:35 AM
Hi Naimesh,
now why didn't i think of that? )) Thanks, it works
Regards,
Ioan.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |