Even if SAP contains a working convertion exit for timestamps (TSTPS), it is not included in the main data elements / domains.
Data element / domain TZNTSTMPS does not include TSTPS. Data element / domain TZNTSTMPSL does include TSTPS, but has a too short output length of 16 characters, which cuts of the seconds. Another problem is the wrong data type (numc instead of dec) which makes TZNTSTMPSL unusable for convert-time-stamp.
A good alternative is data element ACO_TIMESTAMP with domain BCOS_TSTMP.
Wednesday, February 17, 2016
Determine Product for Resource in SAP APO
It is not easy to determine products for a resource for a general case in SAP APO.
Even if there are no orders, there is a function module scanning the most common sources of supply for products by resources: Function Module /SAPAPO/RRP_PT_SELECTION
Populate IS_SEL-SIMID with Simulation Version, IS_SEL-RESNAM_RTAB with the selection of resource names. Find the result in ET_PEGAREA.
Even if there are no orders, there is a function module scanning the most common sources of supply for products by resources: Function Module /SAPAPO/RRP_PT_SELECTION
Populate IS_SEL-SIMID with Simulation Version, IS_SEL-RESNAM_RTAB with the selection of resource names. Find the result in ET_PEGAREA.
Subscribe to:
Posts (Atom)
Working with the session Id // ID für den Modus
Sometimes it can be helpful to know the id of the current session CALL FUNCTION 'TH_GET_CONTEXT_ID' IMPORTING cont...
-
Sometimes the backend doesn't return the selected rows of an SALV. For my case get_metadata( ) was the solution: go_salv-> get_met...
-
GUIDs or UUIDs can be created with the class cl_system_uuid . try . data (lv_uuid) = cl_system_uuid => if_system_uuid_static...
-
SAP's standard class cl_http_utility provides methods to encode and decode base64, i.e. encode_base64 and decode_base64 . l_r...