Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

read structure value into table

Former Member
0 Likes
1,222

Hi,

I would like to retrieve a value from the standard structure MCDOK belonging to a document record version of type draw (actually the fieldname is FRTXT which holds the release time window of the draw document version).

Unfourtnately this element is not stored in a table, if so it would be no problem to read it and e.g. assign as additional column to another table for output, but it's linked in a structure.

I already noticed that it's generally possible to assign structure values via field symbols as well e.g. if one defines an own structure. But I'm not aware how to get the  structure value related to a specific version of an draw record which might be accessed by an loop over a table. In order to add it as column for output purposes.

Do anybody know how to get a structure value related to a specific instance of type draw  ?

Many thanks in advance !

Marty

1 ACCEPTED SOLUTION
Read only

Azeemquadri
Contributor
0 Likes
897

You can run ST05 for the transaction that you need tables for .

Once you run the ST05 go to menu and choose tables.

You will get an idea of tables used to fill the structures.

2 REPLIES 2
Read only

Azeemquadri
Contributor
0 Likes
898

You can run ST05 for the transaction that you need tables for .

Once you run the ST05 go to menu and choose tables.

You will get an idea of tables used to fill the structures.

Read only

0 Likes
897

Thanks but it was not possible to retrieve a table where the information is stored in via trace. But I found out how to retrieve this field via the following function available in an include of the belonging report:

CALL FUNCTION 'CV115_DOCUMENT_VALID_DATES'

       EXPORTING: dokar     = ps_draw-dokar

                  doknr     = ps_draw-doknr

                  tldok     = ps_draw-doktl

       TABLES:    dates     = lt_date

       EXCEPTIONS: OTHERS   = 1.

  READ TABLE lt_date WITH KEY dokvr = ps_draw-dokvr.

  IF sy-subrc = 0.

    IF lt_date-dateto <> '99991231'.

      WRITE lt_date-dateto TO lf_date  DD/MM/YYYY.

    ELSE.

      WRITE '...' TO lf_date  DD/MM/YYYY.

    ENDIF.

    WRITE lt_date-datefrom TO lf_date_from  DD/MM/YYYY.

    CONCATENATE '@5B@' lf_date_from '-' lf_date INTO freigabetext.

  ELSE.

    CONCATENATE '@5C@' text-005 INTO freigabetext.

  ENDIF.

ENDFORM.                               " D101_RELEASED_CHECK

Now it's possible to store the values and assign it as field symbol for output purposes.