Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regenerate data container function module for SMQ2

volker_bock
Participant
0 Likes
2,369

Hi out there,

hopefully I am in the correct place here for my question. We run a QRFC scenario connecting an EWM system to an ERP system. For a certain purpose we have a function module, e.g. Z_EW_PROCORDCONF_CREATE_HDR, which handles process order confirmations out from EWM (to be seen in transaction SMQ2). The Interface was like this:

IV_ORDERID           TYPE AUFNR

IV_QUAN                TYPE CHAR14

IV_QUAN_UNIT       TYPE RU_VORME

IV_POSTG_DATE    TYPE BUCHDATUM

IV_CONF_TEXT       TYPE CO_RTEXT

Within SMQ2, if you doble click on the Queue name, normally you jump into the data container, if everything is setup correctly. This is done by the corresponding module Z_EW_PROCORDCONF_CREATE_HDX which is created internally automatically by /SPE/QUEUE_CONTAINER_SHOW, if you do that the first time.

Now we learned that the display of the data container only works, if the interface parameters are referencing structure fields. We changed the Z_EW_PROCORDCONF_CREATE_HDR module, but we found no way to adjust the Z_EW_PROCORDCONF_CREATE_HDX regarding that interface change.

Is there a function or utility to regenerate the Z_EW_PROCORDCONF_CREATE_HDX module (or any other *X module).

Any helpful answers are appreciated, thanks in advance

Volker Bock

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,256

The function module /SPE/QUEUE_CONTAINER_SHOW does not have any code that checks whether FM parameters have changed, or code to delete generated FM.

If you make a copy of FM Z_EW_PROCORDCONF_CREATE_HDR, first run of queue container will generate corresponding FM.

OR it might be possible to delete the generated FM manually using FM FUNCTION_DELETE, so that next run of queue container is able to generate it again with recent parameter list.

2 REPLIES 2
Read only

Former Member
0 Likes
1,257

The function module /SPE/QUEUE_CONTAINER_SHOW does not have any code that checks whether FM parameters have changed, or code to delete generated FM.

If you make a copy of FM Z_EW_PROCORDCONF_CREATE_HDR, first run of queue container will generate corresponding FM.

OR it might be possible to delete the generated FM manually using FM FUNCTION_DELETE, so that next run of queue container is able to generate it again with recent parameter list.

Read only

0 Likes
1,256

Hi,

without that hint, I won't have dared to delete the module this way. It worked perfectly!! Our main problem was, that module Z_EW_PROCORDCONF_CREATE_HDR had no parameters at all referencing on structures. Thus, the generation of Z_EW_PROCORDCONF_CREATE_HDX dumped in any case, because parameters without structure reference are hidden automatically for the resulting ALV (no_out). As a result there would be no structures at all to display -> DUMP.

One has to know, that those function modules have to have at least one "structure" parameter to work.

Thanks for your help

Volker