cancel
Showing results for 
Search instead for 
Did you mean: 

2lis_02_HDR append Structure

Former Member
0 Kudos

Hi

I added 2 fields to 2LIS_02_HDR extract structure.

EKKO-BUKRS

EKKO-AEDAT

I did not write any CMOD code but in RSA3 I get values for BUKRS but AEDAT is always empty though EKKO table has value in it.

can you please help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I added 2 fields to 2LIS_02_HDR extract structure.

EKKO-BUKRS

EKKO-AEDAT

I did not write any CMOD code but in RSA3 I get values for BUKRS but AEDAT is always empty though EKKO table has value in it.

Hi,

There are two ways of enhancing a standard extract strucute.

1. Enhancement using fields from communication structure.

2. If fields are not available in communication structure then we do append structure and add the fields as per requirement.

Now in 1 case there is no need to write the code at all, system will take care of this itself,

But in 2nd case we need to write the code for newly appended fields.

It depends now how you are enhancing your structure if you are doing by 1st way then and still you are not getting data then check the r/3 table from which you are getting that AEDAT field wether data is available in there or not.

But if you have done enhancement using 2nd option you have to write the code first in CMOD then will only be able to see output for them.

When you append the fields by any option (1 or 2) make sure that you uncheck them by default they are hidden in rsa6.

Thanks

Dipika

Former Member
0 Kudos

Hi Dipika,

Can you explain on what is type 1 and Type 2.

I basically added a Z append structure to the main structure.

both fields were added in thsi way only

I unchecked both hidden and field only know in user exit flags.

Former Member
0 Kudos

Hi,

Please follow the same way as suggested by Varma@infyTree.

Type 1 -> You are enhancing the extract structure by using the fields that are avialable in standard Communication strucute.

The fileds that you want to enhance are very common so you will easily get them in communication structure. which is available in LBWE (specified by Varma@infyTree ).

Type 2 -> Z enhancement, for which we need to write the code in CMOD.

Now for Type 1 again you have to fill the setup tables.

As suggested by other's. So please proceed accordingly.

Thanks.

Dipika

Answers (4)

Answers (4)

Former Member
0 Kudos

In that case, you have to write the code in CMOD for both the fields. Here is the sample code:

CASE I_DATASOURCE.

When '2LIS_03_BF'.

PERFORM Zlis_03_BF TABLES C_T_DATA.

ENDCASE.

**********************************************************

**Form routine below needs to be coded in include ZXRSAF02

**********************************************************

FORM Zlis_03_BF TABLES fp_c_T_DATA STRUCTURE MC03BF0.

data: wa_xauto like MSEG-xauto.

loop at fp_c_t_data into l_t_MC03BF0.

l_tabix = sy-tabix.

select single XAUTO

into l_t_MC03BF0-zzxauto

from MSEG

where

MBLNR EQ l_t_MC03BF0-MBLNR

and MJAHR EQ l_t_MC03BF0-MJAHR

and ZEILE EQ l_t_MC03BF0-ZEILE.

if sy-subrc eq 0.

modify fp_c_t_data from l_t_MC03BF0 index l_tabix.

endif.

clear: l_tabix, l_t_MC03BF0.

endloop.

ENDFORM.

Thanks...

Shambhu

Former Member
0 Kudos

hi,

i hope you have enhanced the communication structure of ur datasource by picking the filed from the pool list.

in this case u may not require to write code inCMOD.

chk the availability of value in the table for the selections u have given in RSA3.

have u populated the setup table for the application 02. if not populate the setup table after deleting it for the application 02.then ck in RSA3.

Ramesh

Former Member
0 Kudos

MM,

I hope you have appended the structure thru LBWE. i.e from the std comm structure. In this case, you should get values for both the field. Please cross check once.

However, if you have appnded the extract structure, then have to write your own code to populate data in CMOD. There is no other way.

Thanks..

Shambhu

varma_narayana
Active Contributor
0 Kudos

Hi..

EKKO-BUKRS

EKKO-AEDAT

These two fields are already available in the Stadard Communication Structure (MCEKKO) of the data source 2LIS_02_HDR.

So there is no need to create any Append Structure.

If u dont see find fields in the Data source (Extract structure)

then you can add the directly using:

LBWE Tcode -> Goto the Data source 2LIS_02_HDR

Select Maintain Structure. (Extract structure)

Select these fields from the Right Side (Comm structure) to Left side. and save.

In the "Maintain Data source" , remove "Hide field" option if it is applied, (Also remove "Field Only" option)

Hope it helps u.

Cheers...

Former Member
0 Kudos

yeh thanks. I went to LBWE first but I don't see these two fields .

that is the reason I just added in extract structure.

Former Member
0 Kudos

If you have enhanced the field, then you need to write the code for that in CMOD.

After that check out the data in rsa3, otherwise you will not get the output.

Thanks

Dipika