How to Get Classification Data in SAP ABAP?

If you have a classification as ‘MODEL’ you can read the data as below. You need to join Ausp and Cabn table. DATA: BEGIN OF i_ausp OCCURS 0,        atnam LIKE cabn-atnam,        objek LIKE ausp-objek,        atwrt LIKE ausp-atwrt,        atflv LIKE ausp-atflv,      END OF i_ausp. CLEAR: i_ausp, i_ausp[].    SELECT cabn~atnam ausp~objek ausp~atwrt ausp~atflv    FROM ausp JOIN cabn ON ausp~atinn = cabn~atinn                       AND ausp~adzhl = cabn~adzhl    INTO TABLE i_ausp   WHERE ausp~adzhl = ‘0’     AND ausp~klart = ‘001’      AND cabn~atnam = ‘MODEL’.  

How to Create Search Help in SAP ABAP?

Firstly open SE11 transaction code, write the search help name that you want to create. Selection method is the table that you reference. QPCD is our example. Dialog type is: “Display Values Immediately” This means when you push search help button, values are displayed immediately. Other options are listed below. You can filter data set“How to Create Search Help in SAP ABAP?” yazısının devamını oku

How to Convert Duration Values in SAP ABAP?

CONVERSION_EXIT_TSTRG_OUTPUT function is used for duration conversion. KNVV-PODTG field is an example for this conversion. DATA  output(10). CALL FUNCTION ‘CONVERSION_EXIT_TSTRG_OUTPUT’EXPORTINGinput = itab-podtgIMPORTINGoutput = outputEXCEPTIONSOTHERS = 1. REPLACE FIRST OCCURRENCE OF ‘,’ IN output WITH ‘.’ .itab-podtg = output.

How to Get Partners Data from SAP Table?

Partners data are stored in KNVP table. Customer number, sales organization, distrubution channel and division are the selection parameters. DATA lt_knvp          LIKE TABLE OF knvp WITH HEADER LINE. SELECT *   FROM knvp     INTO TABLE lt_knvp WHERE kunnr = i_out-kunnr “Customer Number       AND vkorg = p_vkorg “Sales Organization       AND vtweg = p_vtweg “Distribution Channel       AND spart = p_spart. “Division

WordPress.com ile böyle bir site tasarlayın
Başlayın