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

ALV

Former Member
0 Likes
428

Hi,

i have one doubt in ALV please give me answer ,

1. How to change tool bar in ALV report.

2. How to handle table control in bdc.

3. Can we create error log in call transaction method in bdc means this error log we have to see in SM35 t'code how to do this one.

Bye.

Sriniavs

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

Hi,

1. In ALV(using Function Module) you need to create pf-status for your report, double click on your newly created status in the next coming screen goto menu bar EXTRAS -> Adjust Template -> check the radio button list viewer in the pop-up window then click on application tool bar in SE41 screen there you can edit(delete/modify) your application tool bar as per your requirements.

2. Using table control in bdc is not a typical problem, first you can do recording for a particular tcode which is having table control after filling all the rows in the table control you just click on page down button then complete the transaction then after save it and generate the program. In the generated program you need to modify some code as per your requirement.

3.Create the error log for call transaction means all error records have to keep some where that is either in application server or in custom table(Ztable) or need to create on session with the error records.

Cheers,

Bujji

3 REPLIES 3
Read only

Former Member
0 Likes
393

Goto SE41. copy the gui status from BALVBT01 to your own program name it ALV_TEST.

provide a subroutine name in I_CALLBACK_SET_PF_STATUS, say PF_SET.

add this in program

FORM PF_SET USING T_EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS 'ALV_TEST'.

ENDFORM.

add messeges into MSGTAB (type BDCMSGCOLL)

after executing the call transaction stmt, check MSGTYP in the message table. if it contains 'E'. then use FM MESSAGE_PREPARE sending the values MSGNR<MSGID, MSGV1,MSGV2,MSGV3,MSGV4. it'll return a text for this error. display it.

and keep a backup of ur current processing to know for which data the error is encountered in a different int tab.

Reward If useful

Regards

ANUPAM

Read only

Former Member
Read only

Former Member
0 Likes
394

Hi,

1. In ALV(using Function Module) you need to create pf-status for your report, double click on your newly created status in the next coming screen goto menu bar EXTRAS -> Adjust Template -> check the radio button list viewer in the pop-up window then click on application tool bar in SE41 screen there you can edit(delete/modify) your application tool bar as per your requirements.

2. Using table control in bdc is not a typical problem, first you can do recording for a particular tcode which is having table control after filling all the rows in the table control you just click on page down button then complete the transaction then after save it and generate the program. In the generated program you need to modify some code as per your requirement.

3.Create the error log for call transaction means all error records have to keep some where that is either in application server or in custom table(Ztable) or need to create on session with the error records.

Cheers,

Bujji