2013 Mar 29 5:25 AM
Dear All,
I have created custom screen in purchase document item (ME21N) using Exit MM06E005.
i have used the function module EXIT_SAPMM06E_016 & EXIT_SAPMM06E_018 and screen 111.
i placed only one field in my screen namely EXPO_CI-STLAL.
i had validate this field using BADI ME_PROCESS_PO_CUST and method CHECK init.
as check method is not supported warning message i had raise message using MACRO as per following syntax
MMPUR_MESSAGE_FORCED 'W' 'ME' '303' MESSAGE '' '' ''.
now this will open popup of list of warning message and working fine,but when i select my message and press edit button cursor is not set on custom field.
Hope You understand the problem.
kindly help me.
For Example i am getting following list of message,in this, first message is my custom message and when i select this and press edit button cursor is not set on my custom field.
Warm Regards!!!
Jenish Tailor.
Dear All,
I have created custom screen in purchase document item (ME21N) using Exit MM06E005.
i have used the function module EXIT_SAPMM06E_016 & EXIT_SAPMM06E_018 and screen 111.
i placed only one field in my screen namely EXPO_CI-STLAL.
i had validate this field using BADI ME_PROCESS_PO_CUST and method CHECK init.
as check method is not supported warning message i had raise message using MACRO as per following syntax
MMPUR_MESSAGE_FORCED 'W' 'ME' '303' MESSAGE '' '' ''.
now this will open popup of list of warning message and working fine,but when i select my message and press edit button cursor is not set on custom field.
Hope You understand the problem.
kindly help me.
For Example i am getting following list of message,in this, first message is my custom message and when i select this and press edit button cursor is not set on my custom field.
Warm Regards!!!
Jenish Tailor.
2013 Mar 29 6:06 AM
Hi,
You have to used the bellow code
SET CURSOR FIELD name OFFSET pos.
<b>SET CURSOR FIELD <f> LINE <lin> [OFFSET <off>]</b>
Kindly go throught the bellow link
http://help.sap.com/erp2005_ehp_04/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/content.htm
http://scn.sap.com/thread/125592
http://help.sap.com/abapdocu_702/en/abapset_cursor_dynpro.htm
Regard
Nawa
2013 Mar 29 7:11 AM
SET cursor is not useful in this case because screen is created in customer exit and validation is done through BADI.
thanks for the reply.
2013 Apr 02 2:44 PM
Use macro mmpur_metafield before mmpur_message_forced. There are reserved values for customer fields mmmfd_cust_01 (90000000) to mmmfd_cust_10 (90000009). You have to link your fields to those id in BAdI ME_GUI_PO_CUST Method MAP_DYNPRO_FIELDS.
IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM " or in loop in CHECK
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'W' 'ME' '083' text-002 '' '' ''.
IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS
loop at ch_mapping assigning <mapping>.
case <mapping>-fieldname.
when 'ZZFIELD1'. <mapping>-metafield = mmmfd_cust_01.
endcase.
endloop.
Regards,
Raymond
2013 Apr 03 10:46 AM
Hey thanks for reply but i had design screen in exit MM06E005 so MAP_DYNPRO_FIELDS method of BADI ME_GUI_PO_CUST is not triggering.
i already tried with it but break point is not triggered.
if am wrong please suggest.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |