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

simple doubt

i have

btrtl for pa0000-btrtl in selection screen.

(btrtl is personal sub area number)

when i select this range in sel screen., i want to display the personal sub area text in the report output.

sub-area text is in t001p-btext.

can anyone tell me!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 13, 2005 at 04:34 AM

    Hi,

    I cannot see BTRTL in pa0000.

    But you can make the select statement as

    types : begin of ty,

    btext type t001p-btext,

    end of ty.

    data : i_btext type standard table of ty,

    w_btext type ty.

    select btext into table i_btext from t001p where btrtl in s_btrtl.

    loop at i_btext into w_btext.

    write w_btext-btext.

    endloop.

    Kindly reward points if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2005 at 04:28 AM

    Here is a sample code.

    SELECT-OPTIONS S_BTRTL FOR PA0000-BTRTL.
    
    SELECT BTRTL FIELD1 FIELD2 etc FROM DBTABLE INTO TABLE ITAB WHERE BTRTL IN S_BTRTL AND, OR OTHER CONDITIONS.
    
    SELECT BTRTL BTEXT INTO TABLE ITAB_TEXT FROM T001P
                      WHERE BTRTL IN S_BTRTL
                        AND SPRAS = SY-LANGU.
    
    END-OF-SELECTION.
    
    LOOP AT ITAB.
      WRITE:/ ITAB-BTRTL.
      CLEAR ITAB_TEXT.
      READ TABLE ITAB_TEXT WITH KEY BTRTL = ITAB-BTRTL.
      WRITE: ITAB_TEXT-BTRTL.
    ENDDLOOP.
    

    Srinivas

    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.