cancel
Showing results for 
Search instead for 
Did you mean: 

Get DTP Semantic Group fields during runtime

Former Member
0 Kudos

Hi all,

I need to get list of fields defined in Semantic Groups (Extraction tab of DTP) during the runtime of DTP (or to be precise - in another custom ABAP program that is run in the process chain right after the DTP). Is there a table where this is stored for each DTP? Or is there any other way how to retreive this information?

Thank you in advance!

Br,

Juris

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Just for your information, here is how I did it in the end:

    
    DATA: lr_dtp TYPE REF TO cl_rsbk_dtp.
    DATA: lv_dtp TYPE rsbkdtpnm.
    DATA: lt_segfields TYPE rsbk_tx_fields_keyfl.

    CALL METHOD cl_rsbk_dtp=>factory
      EXPORTING
        i_dtp   = lv_dtp
      RECEIVING
        r_r_dtp = lr_dtp.

    IF lr_dtp IS NOT BOUND.
       EXIT.
    ENDIF.

    CALL METHOD lr_dtp->get_groupfields
      IMPORTING
        e_t_groupfields = lt_segfields.

Now table T_FIELDS of deep structure LT_SEGFIELDS contains semantic group fiels for particular DTP!

Edited by: Juris Bogdanovs on Jan 29, 2011 12:54 PM

MartinMaruskin
Active Contributor
0 Kudos

Thanks for sharing Juris.

MartinMaruskin
Active Contributor
0 Kudos

You might need to read properties of DTP in load runtime. There is a method called GET_DTP available in interface IF_RSBK_REQUEST_ADMINTAB_VIEW.

Former Member
0 Kudos

Thank You for your response, however method GET_DTP just retrieves the DTP ID in runtime. Is there a way I can get Semantic Group Keys for particular DTP ID?