2010 Jun 25 8:41 PM
Hello Gurus,
I have this problem:
In transction ME21N and ME22N:
I have used function DYNP_VALUES_READ to read the fields that user has filled on the main screen of Purchase order, but the function does not give any result (table empty...).
I have used both SAPLMEGUI 1211
and SAPLMEGUI 0014
as program / dynpro in the function interface.
Could you help me?
Thanks
Hello Gurus,
I have this problem:
In transction ME21N and ME22N:
I have used function DYNP_VALUES_READ to read the fields that user has filled on the main screen of Purchase order, but the function does not give any result (table empty...).
I have used both SAPLMEGUI 1211
and SAPLMEGUI 0014
as program / dynpro in the function interface.
Could you help me?
Thanks
2010 Jun 26 8:01 AM
hi,
Which fields u want to read specify fields ? check tat fields r in the main screen or r in the sub-screen...
2010 Jun 28 1:49 PM
I want to read EBELP and INFNR.
Below is code that i'm using:
----
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
READ TABLE t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.
----
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks.
2010 Jun 28 1:54 PM
Hello,
Where are you writing your code ?
This FM will read the values only if the screen is under processing. So if you can code in an enhancement.
Regards,
Tarun
2010 Jun 28 2:14 PM
2010 Jun 28 3:12 PM
In the exit EXIT_SAPMM06E_006, you can access the line item details using table TEKPO.
Hope this helps you.
Regards,
Tarun
2010 Jun 29 9:04 AM
Hi,
Your code
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
READ TABLE t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.Instead you can do this.
READ TABLE t_campos INDEX 1. -
Remove Index and replace with Fieldname condtion.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.----
Remove Index and replace with Fieldname condtion.
l_infnr = t_campos-fieldvalue.{
Read Table t_campus with key fieldname = 'MEPO1211-EBELP' .
<Now fetch the Field value>
Similarly do for the next screen field also.
If required debug the FM output and check the dynpro table.
Regards,
Santosh Kumar Mukka.
2010 Sep 20 7:44 PM
hi rsely82 /all,
did you solve your problem?
Because i'm trying to get the value of KNTTP field from grid, just before press the SAVE buttom.. and i'm coding my request inside:
badi: CACL_CHARACTER_INPUT
method if_ex_cacl_character_input~set_character_input.
thank you so much for your help!
ps: one more answer: the table t_campos, what is the type for it? Or how is defined?
Edited by: pampeano on Sep 20, 2010 8:45 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |