‎2007 Dec 24 5:13 AM
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
‎2007 Dec 24 6:19 AM
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
‎2007 Dec 24 5:25 AM
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
‎2007 Dec 24 6:03 AM
hi
good
Query1-
http://www.erpgenie.com/sap/abap/controls/alvgrid.htm
Query 2-
http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm
thanks
mrutyun^
‎2007 Dec 24 6:19 AM
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