i have written the below code for a push button on the application tool bar, i even assigned the org structure, it working fine.
but when i create a variant, the field valuse in the selection scrren are saving but the check box i have selected in the org. structure is not saving. but it is working fine in S_L9C_94000095 transaction.
just check the code.
DATA : r_orgun TYPE RANGE OF objec-objid.
SELECTION-SCREEN FUNCTION KEY 1.
NITIALIZATION.
sscrfields-functxt_01 = ' Org. Structure'.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FC01'.
CALL FUNCTION 'RP_PNP_ORGSTRUCTURE'
EXPORTING
begda = sy-datum
endda = sy-datum
plvar = '01'
TABLES
pobjid = r_orgun.
ENDIF.
regards
Kumar M
Edited by: Kumar M on Jan 27, 2009 6:38 AM