‎2009 Jan 16 9:43 AM
Hi,
Is it possible to get data from a structure called: VBDKR?
Thanks
‎2009 Jan 16 9:45 AM
Hi,
Dont have an idea whats the context but generally structures donot carry any data outside a runtime program.
santhosh
‎2009 Jan 16 9:59 AM
In runtime program I would like to retrieve data from structure VBDKR.
How can I do that ?
‎2009 Jan 16 10:05 AM
Hi,
We cant get data from structures. It doesnt carry any record.
Creat on internal table using this structure and then retrive datas from appropriate table.
Thanks.
‎2009 Jan 16 10:06 AM
Hi,
for that you have find out the user-exits in that program. User-exits are places where customers can write code or process data.
Santhosh
‎2009 Jan 16 10:09 AM
Hi,
I have a code in my program as follows:
SELECT SINGLE * FROM vbrk WHERE vbeln = vbdkr-vbeln.
Unfortunatelly it doesn't return any records.
‎2009 Jan 16 10:15 AM
> Hi,
> I have a code in my program as follows:
>
> SELECT SINGLE * FROM vbrk WHERE vbeln = vbdkr-vbeln. "what is this vbdkr.
>
What do u mean vbdkr-vbeln.
thanks.
‎2009 Jan 16 10:33 AM
hi
Can u give more info regarding the problem you are facing in the code.
Note:
In regard to field selection,INTO option of the SELECT statement is required.
regrads
rajye
Edited by: Rajeshwari padmanaban on Jan 16, 2009 12:10 PM
‎2009 Jan 16 10:48 AM
Hi
Structure is simply a type definition. It is not associated with any data object. So you cannot get any data from VBDKR.
If you want to use the same structure and enter data, declare a data object for that structure and use the data object.
Eg:
REPORT YTEST_16.
DATA: ITAB LIKE VBDKR. * ITAB is a data object having same structure as VBDKR
ITAB-VBELN = 'abc'.
WRITE ITAB-VBELN.
The output is: abc.
Hope this helps
Regards,
Jayanthi.K
‎2009 Jan 16 12:01 PM
I agree with U Jayanthi
Structure dont hold any data
its just a structure which contains what are all the fields it contains but no data will be there
if u want to pass data or retrieve data
declare a data object and use that data object(internal table)
regards
Vikas C
‎2009 Jan 19 8:32 AM