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

Add one more column in the std TCode.

Former Member
0 Likes
743

Hi All,

I have copied the std trasaction(fbl5) program into z program and made only small changes.

But i have not copied all the includes. i .e the program is as it is std program .

Now i want to add one more column in the output .

But i am not able to findout from where they r printing? so pls help me on this issue.

Thanks & Regards

Kalyani.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
704

under the event end -of -selection

we have select query and perform for fieldcatlog there u should modify..

END-OF-SELECTION.

SELECT * FROM BSID INTO GS_BSID WHERE

BUKRS = GS_ITEMS_LINE-BUKRS

AND KUNNR = GS_ITEMS_LINE-KUNNR

AND GJAHR = GS_ITEMS_LINE-GJAHR

AND BELNR = GS_ITEMS_LINE-BELNR

AND BUZEI = GS_ITEMS_LINE-BUZEI.

PERFORM STORE_ITEMSAR USING 'X' YT_BSID_ASSIGNED_ZEILE

GS_ITEMS_LINE.

ENDLOOP.

ENDIF.

*----- Which fields should be displayed/Layout? -


PERFORM CREATE_FIELDCATALOG.

PERFORM CREATE_LAYOUT.

while copying the standard program copy the the include also to z include....

when clicking copy program button...

we will get an pop-up in that check the checkbox includes and press enter...

5 REPLIES 5
Read only

Former Member
0 Likes
705

under the event end -of -selection

we have select query and perform for fieldcatlog there u should modify..

END-OF-SELECTION.

SELECT * FROM BSID INTO GS_BSID WHERE

BUKRS = GS_ITEMS_LINE-BUKRS

AND KUNNR = GS_ITEMS_LINE-KUNNR

AND GJAHR = GS_ITEMS_LINE-GJAHR

AND BELNR = GS_ITEMS_LINE-BELNR

AND BUZEI = GS_ITEMS_LINE-BUZEI.

PERFORM STORE_ITEMSAR USING 'X' YT_BSID_ASSIGNED_ZEILE

GS_ITEMS_LINE.

ENDLOOP.

ENDIF.

*----- Which fields should be displayed/Layout? -


PERFORM CREATE_FIELDCATALOG.

PERFORM CREATE_LAYOUT.

while copying the standard program copy the the include also to z include....

when clicking copy program button...

we will get an pop-up in that check the checkbox includes and press enter...

Read only

0 Likes
704

I have also checked.

Above answer is correct.

Read only

0 Likes
704

hi,

the out put is comming from call function 'FI_ITEMS_DISPLAY' .

first check whether the field which you want to display is present in 'it_pos' table are not if it is not their add that filed to that table write logic to get data. if that field is already present in table the check whether that table is getting data for that filed in deburg mode. at last add that filed to fieldcat. change the layout .

thanq,

rajesh.k

Read only

Former Member
0 Likes
704

hi

use BTE1650 to enhance this additional colum in FBLxN transactions.Very easy approach.

Rgds,

Read only

Former Member
0 Likes
704

Refer Call Function "FI_ITEMS_DISPLAY".