‎2007 Feb 24 2:41 PM
hi,
1) in alv reporting how to create check boxes?
2) how we create two selection screens at atime?
3)what is the source for material master creation in bdc
‎2007 Feb 26 9:33 AM
hi,
you can create check boxes on the selection screen by writing below piece of code in the program as :
selection-screen ch1 as checkbox.
and you can create selection screen block wise such as
selection-screen begin of block b1 with frame title text-001.
select-options s_kunnr for kna1-kunnr.
selection-screen end of block b1.
similary for selection screen with another block,
selection-screen begin of block b2 with frame title text-002.
select-options s_vbeln for vbak-kunnr.
selection-screen end of block b2.
the soruce for material master is basic data 1 or it depends on the requirement.
tcode is mm01>select views>you'll come to know the source..
these fields you need to record using SHDB tcode.
regrds,
shamim.
‎2007 Feb 24 3:06 PM
‎2007 Feb 26 9:33 AM
hi,
you can create check boxes on the selection screen by writing below piece of code in the program as :
selection-screen ch1 as checkbox.
and you can create selection screen block wise such as
selection-screen begin of block b1 with frame title text-001.
select-options s_kunnr for kna1-kunnr.
selection-screen end of block b1.
similary for selection screen with another block,
selection-screen begin of block b2 with frame title text-002.
select-options s_vbeln for vbak-kunnr.
selection-screen end of block b2.
the soruce for material master is basic data 1 or it depends on the requirement.
tcode is mm01>select views>you'll come to know the source..
these fields you need to record using SHDB tcode.
regrds,
shamim.
‎2007 Feb 26 9:40 AM
Hi Jyothi,
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
1)How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
2)
report abc.
*----
selection-screen begin of screen 1001.
parameters : a1001(10) type c.
selection-screen end of screen 1001.
*----
selection-screen begin of screen 1002.
parameters : a1002(30) type c.
selection-screen end of screen 1002.
*----
parameters : a radiobutton group g1 user-command R,
b radiobutton group g1.
*----
at selection-screen.
if a = 'X'.
set pf-status 'ABCD'.
call selection-screen 1001.
else.
set pf-status 'DEF'.
call selection-screen 1002.
endif.
3) BDC for MM02, just with this link ..
http://sap.niraj.tripod.com/id12.html
Regards,
Priyanka.
‎2007 Feb 26 12:42 PM
In add the fieldcatalog as Check box in ALV
SEL is field from Internal Table.
loop at tb_table.
SEL = 'X'. "all record are checked
modify tb_table.
endloop.
<b>CODE for Check Box</b>*
FIELDCATALOG-FIELDNAME = 'SEL'.
FIELDCATALOG-CHECKBOX = 'X'.
FIELDCATALOG-COL_POS = 0.
FIELDCATALOG-OUTPUTLEN = 1.
FIELDCATALOG-EMPHASIZE = 'X'.
FIELDCATALOG-KEY = 'X'.
APPEND FIELDCATALOG TO FIELDCATALOG.
CLEAR FIELDCATALOG.
‎2008 Aug 20 10:31 AM