on 2014 Aug 19 10:37 AM
Hi All,
I am new to SRM ABAP , can you please help out on how to pass value to a parameter
Interface : /SAPSRM/IF_PDO_DO_LIMIT
Method : ADD_ITEM_LIMIT
Data : lo_msg_consumer TYPE REF TO /sapsrm/if_pdo_msg_consumer.
CALL METHOD me->add_item_limit
CHANGING
ct_limit_item = lt_limit_item
co_message_handler = lo_msg_consumer.
Kindly let me know how to pass value to lo_msg_consumer.As during runtime its not accepting the BLANK value to lo_msg_consumer as its mandatory parameter and gives dump.
Thanks,
Nalini.
Request clarification before answering.
Hi All,
Can any SAP SRM developer help me out on above scenario plz !!
Thanks,
Nalini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Variable lo_msg_consumer is an instance of a class implementing the /SAPSRM/IF_PDO_MSG_CONSUMER interface. You have to create an object of a class that implements this interface. To create an object use statement
CREATE OBJECT lo_msg_consumer TYPE HERE_THE_CLASS_NAME.
To find all the classes that implement this interface go to SE24, enter the interface's name, press F7, then open the hierarchy tree on the left and there is a branch called "Implementing classes".
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, they are:
"Get Instance of PO Change Version
lo_pdo_po ?= /sapsrm/cl_pdo_factory_po_adv=>get_instance(
iv_header_guid = p_guid " Document guid
iv_mode = /sapsrm/if_pdo_constants_gen_c=>gc_mode_edit
iv_process_type = p_prctyp ). " Process type optional
IF lo_pdo_po IS BOUND.
"Get PO Header of Change Version
lo_pdo_po->/sapsrm/if_pdo_bo_po~get_header_details(
IMPORTING
es_header = ls_header
CHANGING
co_message_handler = lo_msg_handler ).
You could also try doing it like this:
lo_pdo_po ?= /sapsrm/cl_pdo_factory_po_adv=>get_instance(
iv_header_guid = p_guid " Document guid
iv_mode = /sapsrm/if_pdo_constants_gen_c=>gc_mode_edit
iv_process_type = p_prctyp ). " Process type optional
IF lo_pdo_po IS BOUND.
lo_pdo_po->/sapsrm/if_pdo_bo_po~get_header_details(
IMPORTING
es_header = ls_header
CHANGING
co_message_handler = lo_msg_handler ).
CALL METHOD me->add_item_limit
CHANGING
ct_limit_item = lt_limit_item
co_message_handler = lo_msg_consumer.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.