Application Development 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: 

Adding serial number to CJI3 report

Former Member
0 Kudos

Hi ,

My requirement is to add serial number to cji3 report output .

I want to write a code in the implicit enhancemet whchis in the begining of the FORM LIST in the include LKAEPFLI.

i found all the fileds of the filed catalog in the table gt_variant_fieldcat[].

and data in the <gt_pos_data>.

plese help me in this issue.

Thanks and best regrds,

sravan.

16 REPLIES 16

nabheetscn
Active Contributor
0 Kudos

Hi

Please find below the steps for the same.

1.Go to se38 report.

2Go inside the perform you see.

3Click on the spiral button next to the check icon.

4then go to edit >ehancemenet operation>show implicit enhancements.

5You will get some line at beginning and end of eveny sub routine.

6Right click on it create an implementation give the name and you can write you code.

I hope it will help.

In case you need any more input step by step let me know the report namei will explain you with details.

Regards,

Nabheet Madan

Edited by: nabheetmadan09 on Oct 16, 2009 10:49 AM

0 Kudos

Hi,

Thanks for the reply.

But i have already done the same and i have created Implicit ehhancement also.

But what i need is logic for how to append data to the table ( which is field symbol ) .

cheers,

sravan.

0 Kudos

Can you please paste the code here or tell me the program sub routine detail.

Regards

Nabheet Madan

0 Kudos

Hi,

Include Name : LKAEPFLI

If i am not wrong the subroutine is LIST

After this routine only ALV display function modules are used.

Thanks,

sravan

0 Kudos

Hello,

What you can do is as follow.

loop at <gt_pos_data> into <gs_pos_data>.

Move this data to another work area

append it to the table.

endloop.

add your data.

unassign the field symbol.

again assign this field symbol to modified internal table

Regards,

Nabheet Madan

0 Kudos

Hi Madan,

Thanks for your reply.

You mentioned about creation of another work area .

Can you please tell me ..work area of which type .

<gt_pos_data> have 3896 fields. Am i need to create work area with all these fields ?

would you please give me the sample code.

cheers,

sravan.

nabheetscn
Active Contributor
0 Kudos

Hello,

Please go ahead and creata a work area.

In case of any problem do let me know.

Regards,

Nabheet Madan

0 Kudos

Hi,

Is there any alternative way ?

Cheers,

sravan.

0 Kudos

use <FS> of any type then move the data into it.Append this to table of any type.

Regards,

NAbheet

0 Kudos

Hi Madan,

Again field symbols...

how to add new filed to this internal table ( which is in field symbols )... which is my primary issue..

agin the Issues starts from begining....

cheers,

sravan

nabheetscn
Active Contributor
0 Kudos

sorry i thought something else in between...I think go ahead and creat the work area...

Regards

Nabheet

0 Kudos

Hi Madan,

wrok area with 3896 fields ??

can please tell how can i create a work area with 3896 fields in a simple way.

cheers,

sravan.

Former Member
0 Kudos

Hi ,

I have applied an SAP Note 325546 for adding a serial no in the line item level.

I have written small code in the exit EXIT_SAPLKAEP_001 for a serial no. ( whcih is given below ).

STATICS : sl_no TYPE i.

sl_no = sl_no + 1.

cs_record-zz_sl_no = sl_no.

But I am not able to get the serial No. in sorted order as per document date.

cheers,

sravan

Former Member
0 Kudos

Hi,

When I execute the CJI3 Report , the Serial Number was in sorted order.

But when I select one filed and click on sorting button on the application tool bar the serial number field is not in sorted order.

My requirement is , I need serial number in sorted order independent to other fields sorted order.

Thanks& Regards

sravan.

0 Kudos

Updates Please..

0 Kudos

Hi ,

Is it possible to control the standard alv field sorting throug enhancement ?

Regards,

sravan.