‎2013 Jun 18 5:39 PM
I want to create an enhancement but my implementations has a syntax error which should not be there. In my enhancement the field ediprp can not be accessed but the next enhancement delivered by SAP can access the field.
Do you have any idea to fix that problem?
Best regards
Bernhard
***************************************************************
The SAP-Program contains follwing type definition:
TYPES:
BEGIN OF mrm_t076s,
cblartkr LIKE t076s-cblartkr,
cblartkg LIKE t076s-cblartkg,
cmwskzfrei LIKE t076s-cmwskzfrei,
mrmkorr LIKE t076s-mrmkorr,
mrmconsmatnr LIKE t076s-mrmconsmatnr,
mrmconsmeins LIKE t076s-mrmconsmeins,
edinegdiff LIKE t076s-edinegdiff.
ENHANCEMENT-POINT lmrmhtop_01 SPOTS es_saplmrmh STATIC.
*$*$-Start: LMRMHTOP_01-------------------------------------------------------------------------$*$*
ENHANCEMENT 2 OIA_SI_SAPLMRMH. "active version
TYPES :
ediprp LIKE t076s-ediprp.
ENDENHANCEMENT.
*$*$-End: LMRMHTOP_01-------------------------------------------------------------------------$*$*
TYPES:
END OF mrm_t076s.
*******************************************************************************
The code looks like this:
ENHANCEMENT-POINT IDOC_INPUT_INVOIC_MRM_01 SPOTS ES_SAPLMRMH.
*$*$-Start: IDOC_INPUT_INVOIC_MRM_01------------------------------------------------------------$*$*
ENHANCEMENT 1 /SPSRT/MM_EDI_INVOICE.
MRM_T076S-EDIPRP = 'X'. "***** this line causes a syntax error MRM_T076S-EDIPRP does not exist
ENDENHANCEMENT.
ENHANCEMENT 3 OI0_COMMON_SAPLMRMH. "active version
* RBZ170701 enable parked documents via EDI for Logistics IV SO7K011239
IF MRM_T076S-EDIPRP = 'X'. "SO7K011239JH here the field can be accessed
MOVE 'A' TO MRM_RBKPV-RBSTAT. "SO7K011239JH
clear mrm_rbkpv-ivtyp. "SO7K011239JH
ELSE. "SO7K011239JH
MOVE '5' TO MRM_RBKPV-RBSTAT. "SO7K011239JH
ENDIF. "SO7K011239JH
ENDENHANCEMENT.
‎2013 Jun 18 6:21 PM
Dear Bernhard,
field MRM_T076S-EDIPRP can used in the enhancement implementation OI0_COMMON_SAPLMRMH because it is switched off.
The component ediprp of the data object mrm_t076s is defined in enhancement OIA_SI_SAPLMRMH in include LMRMHTOP. This enhancement implementation belongs to switch OIA_SPLIT_INVOICING.
If this switch is off in your system you cannot access component EDIPRP from an switched on enhancement implementation. Could you please check it whether switch OIA_SPLIT_INVOICING is on in your system?
Best regards,
Erika
‎2013 Jun 18 6:21 PM
Dear Bernhard,
field MRM_T076S-EDIPRP can used in the enhancement implementation OI0_COMMON_SAPLMRMH because it is switched off.
The component ediprp of the data object mrm_t076s is defined in enhancement OIA_SI_SAPLMRMH in include LMRMHTOP. This enhancement implementation belongs to switch OIA_SPLIT_INVOICING.
If this switch is off in your system you cannot access component EDIPRP from an switched on enhancement implementation. Could you please check it whether switch OIA_SPLIT_INVOICING is on in your system?
Best regards,
Erika
‎2013 Jun 19 8:02 AM
Hello Erika,
thanks. You are right, my fault I didn't check the switch.
best regards
Bernhard