SAP Function Modules

ISM_AD_INSERT_MAINTAIN_DIALOG SAP Function module - Create Ad Insert in Dialog







ISM_AD_INSERT_MAINTAIN_DIALOG is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISM_AD_INSERT_MAINTAIN_DIALOG into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: JPISM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISM_AD_INSERT_MAINTAIN_DIALOG - ISM AD INSERT MAINTAIN DIALOG





CALL FUNCTION 'ISM_AD_INSERT_MAINTAIN_DIALOG' "Create Ad Insert in Dialog
  EXPORTING
*   pvi_mattype =               " rmmg1-mtart   Material Type
*   pvi_seldat_von =            " rjha480-seldat_von
*   pvi_si_typ =                " rjha480-si_typ  IS-M: Ad Insert Type
*   pvi_si_gewicht =            " rjha480-si_gewicht  IS-M: Ad Insert Weight
*   pvi_meinhgewbl =            " rjha480-meinhgewbl
*   pvi_anzseiten =             " rjha480-anzseiten  Number of Pages in Issue
*   pvi_si_entspfl =            " rjha480-si_entspfl
*   pvi_si_verbwer =            " rjha480-si_verbwer  IS-M: Tie-in ads indicator
*   pvi_spart =                 " rjha300-spart  Division
*   pvi_xskip_first_screen = 'X'  " xfeld       Skip Initial Screen
*   pvi_xbinpt = SPACE          " sybinpt       Batch input, program running under batch input
    pvi_trtyp =                 " tj180-trtyp   Transaction Type
*   pvi_si_nummer =             " rjhasiz-si_nummer  IS-M: Ad Insert Number
*   pvi_vkorg =                 " vkorg         Sales Organization
*   pvi_vtweg =                 " vtweg         Distribution Channel
  IMPORTING
    pve_si_changed =            " xfeld         Checkbox Field
    pve_si_nummer =             " rjhasiz-si_nummer  IS-M: Ad Insert Number
    pse_jdtvausgb =             " jdtvausgb     IS-M/SD: Issues
    pse_jdtdrer =               " jdtdrer       IS-M/SD: Publications
* TABLES
*   pt_jdtvausgb =              " jdtvausgb     IS-M/SD: Issues
*   pt_jdtdrer =                " jdtdrer       IS-M/SD: Publications
    .  "  ISM_AD_INSERT_MAINTAIN_DIALOG

ABAP code example for Function Module ISM_AD_INSERT_MAINTAIN_DIALOG





The ABAP code below is a full code listing to execute function module ISM_AD_INSERT_MAINTAIN_DIALOG including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_pve_si_changed  TYPE XFELD ,
ld_pve_si_nummer  TYPE RJHASIZ-SI_NUMMER ,
ld_pse_jdtvausgb  TYPE JDTVAUSGB ,
ld_pse_jdtdrer  TYPE JDTDRER ,
it_pt_jdtvausgb  TYPE STANDARD TABLE OF JDTVAUSGB,"TABLES PARAM
wa_pt_jdtvausgb  LIKE LINE OF it_pt_jdtvausgb ,
it_pt_jdtdrer  TYPE STANDARD TABLE OF JDTDRER,"TABLES PARAM
wa_pt_jdtdrer  LIKE LINE OF it_pt_jdtdrer .


DATA(ld_pvi_mattype) = some text here

DATA(ld_pvi_seldat_von) = 20210129

DATA(ld_pvi_si_typ) = some text here

DATA(ld_pvi_si_gewicht) = Check type of data required

DATA(ld_pvi_meinhgewbl) = Check type of data required

DATA(ld_pvi_anzseiten) = Check type of data required

DATA(ld_pvi_si_entspfl) = some text here

DATA(ld_pvi_si_verbwer) = some text here

DATA(ld_pvi_spart) = some text here
DATA(ld_pvi_xskip_first_screen) = 'Check type of data required'.
DATA(ld_pvi_xbinpt) = 'some text here'.

SELECT single TRTYP
FROM TJ180
INTO @DATA(ld_pvi_trtyp).


DATA(ld_pvi_si_nummer) = some text here
DATA(ld_pvi_vkorg) = 'some text here'.
DATA(ld_pvi_vtweg) = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_jdtvausgb to it_pt_jdtvausgb.

"populate fields of struture and append to itab
append wa_pt_jdtdrer to it_pt_jdtdrer. . CALL FUNCTION 'ISM_AD_INSERT_MAINTAIN_DIALOG' EXPORTING * pvi_mattype = ld_pvi_mattype * pvi_seldat_von = ld_pvi_seldat_von * pvi_si_typ = ld_pvi_si_typ * pvi_si_gewicht = ld_pvi_si_gewicht * pvi_meinhgewbl = ld_pvi_meinhgewbl * pvi_anzseiten = ld_pvi_anzseiten * pvi_si_entspfl = ld_pvi_si_entspfl * pvi_si_verbwer = ld_pvi_si_verbwer * pvi_spart = ld_pvi_spart * pvi_xskip_first_screen = ld_pvi_xskip_first_screen * pvi_xbinpt = ld_pvi_xbinpt pvi_trtyp = ld_pvi_trtyp * pvi_si_nummer = ld_pvi_si_nummer * pvi_vkorg = ld_pvi_vkorg * pvi_vtweg = ld_pvi_vtweg IMPORTING pve_si_changed = ld_pve_si_changed pve_si_nummer = ld_pve_si_nummer pse_jdtvausgb = ld_pse_jdtvausgb pse_jdtdrer = ld_pse_jdtdrer * TABLES * pt_jdtvausgb = it_pt_jdtvausgb * pt_jdtdrer = it_pt_jdtdrer . " ISM_AD_INSERT_MAINTAIN_DIALOG
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pve_si_changed  TYPE XFELD ,
ld_pvi_mattype  TYPE RMMG1-MTART ,
it_pt_jdtvausgb  TYPE STANDARD TABLE OF JDTVAUSGB ,
wa_pt_jdtvausgb  LIKE LINE OF it_pt_jdtvausgb,
ld_pve_si_nummer  TYPE RJHASIZ-SI_NUMMER ,
ld_pvi_seldat_von  TYPE RJHA480-SELDAT_VON ,
it_pt_jdtdrer  TYPE STANDARD TABLE OF JDTDRER ,
wa_pt_jdtdrer  LIKE LINE OF it_pt_jdtdrer,
ld_pse_jdtvausgb  TYPE JDTVAUSGB ,
ld_pvi_si_typ  TYPE RJHA480-SI_TYP ,
ld_pse_jdtdrer  TYPE JDTDRER ,
ld_pvi_si_gewicht  TYPE RJHA480-SI_GEWICHT ,
ld_pvi_meinhgewbl  TYPE RJHA480-MEINHGEWBL ,
ld_pvi_anzseiten  TYPE RJHA480-ANZSEITEN ,
ld_pvi_si_entspfl  TYPE RJHA480-SI_ENTSPFL ,
ld_pvi_si_verbwer  TYPE RJHA480-SI_VERBWER ,
ld_pvi_spart  TYPE RJHA300-SPART ,
ld_pvi_xskip_first_screen  TYPE XFELD ,
ld_pvi_xbinpt  TYPE SYBINPT ,
ld_pvi_trtyp  TYPE TJ180-TRTYP ,
ld_pvi_si_nummer  TYPE RJHASIZ-SI_NUMMER ,
ld_pvi_vkorg  TYPE VKORG ,
ld_pvi_vtweg  TYPE VTWEG .


ld_pvi_mattype = some text here

"populate fields of struture and append to itab
append wa_pt_jdtvausgb to it_pt_jdtvausgb.

ld_pvi_seldat_von = 20210129

"populate fields of struture and append to itab
append wa_pt_jdtdrer to it_pt_jdtdrer.

ld_pvi_si_typ = some text here

ld_pvi_si_gewicht = Check type of data required

ld_pvi_meinhgewbl = Check type of data required

ld_pvi_anzseiten = Check type of data required

ld_pvi_si_entspfl = some text here

ld_pvi_si_verbwer = some text here

ld_pvi_spart = some text here
ld_pvi_xskip_first_screen = 'some text here'.
ld_pvi_xbinpt = 'some text here'.

SELECT single TRTYP
FROM TJ180
INTO ld_pvi_trtyp.


ld_pvi_si_nummer = some text here
ld_pvi_vkorg = 'some text here'.
ld_pvi_vtweg = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISM_AD_INSERT_MAINTAIN_DIALOG or its description.