Skip to Content
author's profile photo Former Member
Former Member

Accessing Fields on DTP via ABAP

Hi Experts,

I am writing an ABAP report that provides settings on DTPs. I have succesfully obtained almost all the settings of the DTP using ABAP.

Some of the DTP settings on the Update and Extraction tabs are depedent on the type of data source or data target defined in the DTP.

For example, on the Update tab, if the data target is ODSO, then "further processing without master data / no further processing without master data" options are visible. But if the target is CUBE, you just have a checkbox "no update without Master data."

My question is how exactly do I get these selections that depend on the type of source or target via ABAP code?

I've looked over the class CL_RSBK_DTP, but these selection fields are not available in any of those methods from what I can tell. However, on that class is a reference to an "update command template" and an "extraction command template" (these classes are available via the GET_OBJ_REF_TPL_U and GET_OBJ_REF_TPL_X methods). I suspect these two objects contain the fields I need to get the settings for. I've looked over those classes, though, and it isn't apparent to me how to obtain these custom field settings that are populated based on the source or target type.

Can someone please help by providing code that will obtain this? For example, just show me the code that will obtain the "further processing without master data/no further processing without master data" setting on the DTP if the target type is ODSO.

Thanks,

Kevin

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2013 at 05:01 PM

    Hi Kevin,

    is it this what you're looking for?

    DATA: LR_DTP type ref to cl_rsbk_dtp.

    DATA: LR_CAST type ref to cl_rsbk_cmd_tpl.

    DATA: LR_UPDATE_CMD type ref to OBJECT.

    PARAMETERS: P_DTP TYPE RSBKDTPNM.

    LR_DTP = cl_rsbk_dtp=>factory( p_dtp ).

    LR_UPDATE_CMD ?= LR_DTP->get_obj_ref_tpl_u( ).

    LR_CAST ?= LR_UPDATE_CMD.

    Now you can get the attribute values you might need.

    Regards,

    Sascha

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      That was helpful. N_USE_ARCHIVE is populated with a "*" when the (with archive) option is selected, or blank when without archive is selected. I suspect N_USE_DB and N_USE_DB_AND_ARCHIVE are deprecated fields because I cannot find them used anywhere.

  • Posted on Oct 16, 2013 at 05:48 PM

    Hi Kevin

    I'm not much help here but I'm curious what you are up to.. Can you tell us something about the business background on this?

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.