Extraer estructura de pantalla desde una BADI

Con esta forma, peculiar, podemos levantar datos de pantalla. No me puse a investigarlo a fondo porque no tenía tiempo. Según tengo entendido tmb sirve para levantar hasta tablas internas.

En este caso levanto la estructura resbd de la tx IW32.

 

DATA:l_field(60)         TYPE C VALUE ‘(SAPLCOIH)RESBD’,
          ls_resbd                 TYPE resbd.

FIELD-SYMBOLS: <fs_resbd>          TYPE ANY.
*      Fetching the Component Item from the Screen. This is for read-only
*      purpose and content should not be changed.
ASSIGN (l_field) to <fs_resbd>.
if sy-subrc eq 0.
      ls_resbd = <fs_resbd>.
      UNASSIGN <fs_resbd>.
endif.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: