Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI Select Query

    call function 'BAPI_COSTCENTERGROUP_GETDETAIL'
         exporting
              controllingarea = p_kokrs
              groupname       = p_ksgru
         tables
              hierarchynodes  = itab_nodes
              hierarchyvalues = gt_cgrp.

    if sy-subrc = 0.
      refresh s_kostl.
      move: 'I' to s_kostl-sign,
            'BT' to s_kostl-option.
      loop at gt_cgrp.
        move gt_cgrp-valfrom to s_kostl-low.
        move gt_cgrp-valto   to s_kostl-high.
        append s_kostl.
      endloop.
    endif.

In the above code even though the BAPI returns 33 values

S_KOSTL has 66 values ( values are replicated into it).

How to fix this problem.......

Tags:
Not what you were looking for? View more on this topic or Ask a question