Skip to Content
author's profile photo Former Member
Former Member

User-exit ZXF01U01 (electronic account statement)

Hi experts,

actually I am working in include ZXF01U01 (Function EXIT_RFEBBU10_001)

Unfortunately break-points don't work in user-exit or earlier, because of an submit in the program earlier.

The User-exit is getting pass, but I can't debug it.

I'm not a regular programmer so I would be glad for your help.

Note: For this post I shorted

 DATA: 

problem: counter don't raise or raise almost every time (CS is fulfilled), although there should be only exactly 1 correct line.

count + 1 almost every time - when not using condense.

count + 1 never - when using condense.

*"  IMPORTING
*"     VALUE(I_FEBEP) LIKE  FEBEP STRUCTURE  FEBEP
*"     VALUE(I_FEBKO) LIKE  FEBKO STRUCTURE  FEBKO
*"     VALUE(I_TESTRUN) TYPE  XFLAG
*"  EXPORTING
*"     VALUE(E_FEBEP) LIKE  FEBEP STRUCTURE  FEBEP
*"     VALUE(E_FEBKO) LIKE  FEBKO STRUCTURE  FEBKO
*"     VALUE(E_MSGTEXT) LIKE  FEBMKA-MESSG
*"     VALUE(E_MSGTYP) LIKE  FEBMKA-MSTYP
*"     VALUE(E_UPDATE) LIKE   -MSTYP
*"  TABLES
*"      T_FEBCL STRUCTURE  FEBCL
*"      T_FEBRE STRUCTURE  FEBRE

TYPES: BEGIN OF ty_bsid,
         xblnr TYPE c,"TYPE bsid-xblnr,
         umskz TYPE bsid-umskz,
       END OF ty_bsid,
       BEGIN OF ty_febre,
         vwezw TYPE febre-vwezw,
       END OF ty_febre.

DATA:
       lt_febre TYPE TABLE OF ty_febre,
       lt_bsid TYPE TABLE OF ty_bsid.

FIELD-SYMBOLS:  <fbsid> TYPE ty_bsid,
               <ffebre> TYPE ty_febre.

BREAK-POINT.

MOVE-CORRESPONDING i_febko TO e_febko.
MOVE-CORRESPONDING i_febep TO e_febep.

select SINGLE ZGSBER
  FROM ZFI_EKTOAUSZ_A
  INTO E_FEBEP-GSBER
  WHERE ZBUKRS  = I_FEBKO-BUKRS AND
        ZVGINT  = I_FEBEP-VGINT.

SELECT * FROM bsid
  INTO CORRESPONDING FIELDS OF TABLE lt_bsid
  WHERE bukrs = i_febko-bukrs.

  SELECT * FROM febre
    INTO CORRESPONDING FIELDS OF TABLE lt_febre
    WHERE kukey = i_febep-kukey
    and esnum = i_febep-esnum.

    LOOP AT lt_bsid ASSIGNING <fbsid>.
*      CONDENSE <fbsid>-xblnr no-gaps.
      IF <fbsid>-xblnr is INITIAL.
        EXIT.
      ENDIF.
      LOOP AT lt_febre ASSIGNING <ffebre> WHERE vwezw CS <fbsid>-xblnr.
        IF sy-subrc = 0.  " wenn was gefunden
          lv_count = lv_count + 1.  " mach was
          lv_umskz = <fbsid>-xblnr. "lt_bsid-umskz.
          e_febep-info2 = <fbsid>-xblnr.
        ENDIF.
*        if lv_count > 1.
*          EXIT.
*        ENDIF.
      ENDLOOP.
    ENDLOOP.

Thanks a lot!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2015 at 01:01 PM

    Hi,

    Please try to put a break point in the program or you can use syntax: 'BREAK <username>' in any part of the program ans then try to execute transaction 'FF_5' transaction.

    You will reach the point where you have set the debugger!

    Regards,

    Somak Biswas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.