Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
joachimrees1
Active Contributor
3,871
I am an ABAP developer.
And you might know that I claim to do "modern" ABAP.

But programming in a modern SAP warehousing solution - SAP EWM - makes me use old ABAP.
Like function modules.
And maybe even dynpros.

An example is the /SCWM/MON: the nodes have to be FMs, the methods as well.

Here is an example monitor method:
FUNCTION Z_MON_METHOD_PAINT_HU
IMPORTING
IV_LGNUM TYPE /SCWM/LGNUM
IT_DATA TYPE /SCWM/TT_LIME_ALL_MON.

*Allow just 1 line
IF lines( it_data ) <> 1.
"Please select exactly 1 line for this method!
MESSAGE s003 DISPLAY LIKE 'W'.
RETURN.
ELSE.
DATA(ls_hu_data) = it_data[ 1 ].
ENDIF.

*Ask for Input ("what colour to paint the HU?")
gs_hu_paint_dynpro-huident = ls_hu_data-huident
CALL SCREEN c_screen_paint_HU STARTING AT 10 10 .
*make sure no cancel etc.
IF g_fcode NE c_fcode_save.
RETURN.
ENDIF.

* do the actual work in ABAP OO:
go_my_mon_node->paint_hu_in_colour( i_huident = gs_hu_paint_dynpro-huident
i_colour = gs_hu_paint_dynpro-colour_to_paint ).

ENDFUNCTION.

You know what: I think it's not that bad, actually.

What do you think?
Do you use old ABAP?
Do you have to?

Best
Joachim
5 Comments
Labels in this area