Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Syntax error in Enhancement - is wrong.

Former Member
0 Likes
1,419

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 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 /SPSRT/MM_EDI_INVOICE.

   MRM_T076S-EDIPRP = 'X'.         "*****   this line causes a syntax error MRM_T076S-EDIPRP does not exist


ENDENHANCEMENT.

ENHANCEMENT 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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
972

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

2 REPLIES 2
Read only

Former Member
0 Likes
973

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

Read only

0 Likes
972

Hello Erika,
thanks. You are right, my fault I didn't check the switch.

best regards
Bernhard