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

Problem in BADI

Former Member
0 Likes
646

HI All,

      i want to add additional field in F.13 report. for rhis report there are two badi 1.FAGL_PERIOD_CHECK 2.SCMA_TREE_STATUS

i have add code in SCMA_TREE_STATUS there are many method i have add code in method SET_NODE_ATTRIBUTES.

i want to add additional field in report. field name in BKPF-DUDAT. ane link with report is DFIES this is Structre and Field name is DFIES-REPTEXT.

my code is below.

method IF_EX_SCMA_TREE_STATUS~SET_NODE_ATTRIBUTES.

  data : IS_MASTER_FCAT TYPE LVC_S_FCAT,

         IT_MASTER_FCAT TYPE LVC_T_FCAT,

         ET_MASTER_FCAT TYPE LVC_T_FCAT.



*  TABLES : BKPF.

   TYPES : BEGIN OF TY_FINAL,

            BUDAT TYPE BKPF-BUDA,

            INCLUDE STRUCTURE DFIES,

          END OF TY_FINAL.

  DATA : IT_FINAL TYPE TABLE OF TY_FINAL,

         WA_FINAL TYPE TY_FINAL.



  SELECT BUDAT FROM BKPF INTO TABLE IT_FINAL

    WHERE DFIES-REPTEXT = BELNAR.

endmethod.

how to link with structure. please help me.

1 REPLY 1
Read only

hendrik_brandes
Contributor
0 Likes
438

Hi,

do you have a solution found? I do not know exactly this area - but i am not sure, if your badi-method "set_node_attributes" will helps you.

I would suggest, to try the method CHANGE_FIELDCAT with a break-point and look what SAP sends to you. After this, you can - perhaps within set_node_attributes - change some values. But: if I look deeper in the structure of this component, I am not sure if this match your requirements.

Maybe the method CREATE_NEW_TREE will helps you.a

Kind regards,

Hendrik