yushang
yushang

Reputation: 133

why this abap call dialog statement is valid?

I found an abap statement like this

CALL DIALOG 'RF_TABELLE_030'
    EXPORTING T020-AKTYP MSMOD IMP-GRUPP FROM 'BIL'
    IMP-KTOSL FROM 'BIL'
    IMPORTING MSGNR TBSPR TDDAT-CCLASS.

I can't find the matching syntax of it from the latest abap keyword document. I guess it might be valid in older abap release(for example, 620), but I can't find the document (the earliest I can find is for 731). please help! many thanks!

Upvotes: 0

Views: 146

Answers (1)

manuel_b
manuel_b

Reputation: 1803

You can find the documentation of CALL DIALOG in the Obsolete Calls section. It is a valid (but deprecated) statement.

CALL DIALOG AS ABAP Release 756

Edit:

every actual parameter is assigned to a single formal parameter.

A special case is when formal parameter have the exact name of the actual parameter (see Addition 3 - Hint.

In this case - and if outside of classes - you can omit the FROM p1 part in EXPORTING p1 FROM p1 so it becomes EXPORTING p1

Your code:

CALL DIALOG 'RF_TABELLE_030'
    EXPORTING T020-AKTYP MSMOD IMP-GRUPP FROM 'BIL'
    IMP-KTOSL FROM 'BIL'
    IMPORTING MSGNR TBSPR TDDAT-CCLASS.

is the contracted form for

CALL DIALOG 'RF_TABELLE_030'
    EXPORTING T020-AKTYP   FROM T020-AKTYP
              MSMOD        FROM MSMOD
              IMP-GRUPP    FROM 'BIL'
              IMP-KTOSL    FROM 'BIL'
    IMPORTING MSGNR        TO   MSGNR
              TBSPR        TO   TBSPR 
              TDDAT-CCLASS TO   TDDAT-CCLASS.

Upvotes: 1

Related Questions