on 12-21-2007 12:48 AM
I am trying to get the number of condition records in a purchase info record.
using ME_GET_INFORECORD_CONDITIONS and also ME_GET_INFORECORD_CONDITIONS_1.
ME_GET_INFORECORD_CONDITIONS_1 gives me the correct values when I try to test the FM.
What is the diff between these 2 FMs.
But when I use ME_GET_INFORECORD_CONDITIONS_1 in a report, it is not giving a correct value.
Following is the code:
DATA: IT_KONP TYPE KONP OCCURS 0 WITH HEADER LINE,
WA_KONP TYPE KONP.
DATA: coun TYPE i VALUE 0.
"Get the number of condition record - should be useful in BDC call.
CALL FUNCTION 'ME_GET_INFORECORD_CONDITIONS_1'
EXPORTING
I_EKORG = 'U001'
I_ESOKZ = '0'
I_INFNR = '5300000320'
I_LIFNR = '200524'
I_MATKL = '001'
I_MATNR = '80141300'
I_WERKS = 'L001'
* I_VABME =
* I_BSTME =
TABLES
TKONP = IT_KONP.
LOOP AT IT_KONP.
ADD 1 to coun.
ENDLOOP.
WRITE: / coun.
The variable coun is always Zero.
Reg
The LIFNR in the input parameters should be L-Padded with zeros. In SE37 it does it by itself.
reg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use SE37 to open these two FM, then by menu Goto->Document to check the details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.