Abt Selection Screen
Hello Experts..
m facing a strange problem..
On my selection screen, I have given 3 select-options for SD No, Item No and WBS Element.
So when I enter range in SD NO along with in Item No and execute the report, it simply neglects the range of Item no and displays all SDs, but when I go back from report to my selection-screen again and then execute the report again, it filters the records based on itm no range.
I debugged the programme and found that no vlue is entering from selection screen in select option for item during first time execution, while its thr when I execute the report second time..
so Any ideas for this..
Ur help will definately appriciated..
Thanks in advance..
Thanks to all for your replies
but the problem its not reading the scond select option i.e. for item,
I refreshed all intab along with select options
but the problem is same. ..the values are not getting transferred from the selection screen during 1st execution...
m giving partial code for ur referal here..
TABLES: VBAP,
VBFA,
VBRP.
Declaration of internal tables *
TYPE-POOLS SLIS.
INCLUDE: <ICON>,
<SYMBOL>.
CONSTANTS: GC_FORMNAME_TOP_OF_PAGE TYPE
SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
GC_FORMNAME_USER_COMMAND TYPE
SLIS_FORMNAME VALUE 'USER_COMMAND'.
DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
I_EVENTS TYPE SLIS_T_EVENT,
I_LAYOUT TYPE SLIS_LAYOUT_ALV.
Declaration of internal table for Sales Doc. Item Data alongwith all
related informations
data: begin of i_out occurs 0,
vbeln like vbap-vbeln, " Sales document
posnr like vbap-posnr, " Sales document item
ps_psp_pnr like vbap-ps_psp_pnr, " WBS element
prctr like vbap-prctr, " Profit center
matnr like vbap-matnr, " Material number
arktx like vbap-arktx, " Short text for sales order item
kdmat like vbap-kdmat, " Material number used by customer
kwmeng like vbap-kwmeng, " Cumulative ord qty in sal units
netwr like vbap-netwr, " Net value of the order item
waerk like vbap-waerk,
vbelnf like vbfa-vbeln, " Subseq sales & dist document
posnn like vbfa-posnn, " Subseq item of an SD document
VBTYP_N LIKE VBFA-VBTYP_N,
fkart like vbrk-fkart,
fkimg like vbrp-fkimg, " Actual billed quantity
tot_qty like vbrp-fkimg, "Billed Qty for item
diff_qty like vbrp-fkimg, " B Q to be billed
netwr_b like vbrp-netwr,
BILL_CURR like vbrp-
TOT_BILL like vbrp-netwr,
DIFF like vbrp-netwr,
kzwi5 like vbrp-kzwi5,
kzwi6 like vbrp-kzwi6,
amt like vbrp-netwr,
tot_amt like vbrp-netwr,
diff_amt like vbrp-netwr,
end of i_out,
CNT TYPE I,
p_f2code type sy-ucomm value '&IC1'.
DATA: I_TEMP LIKE I_OUT OCCURS 0 WITH HEADER LINE,
W_TABIX LIKE SY-TABIX.
Declaration of internal table for Sales Doc. Item Data alongwith all
billing informations
DATA: BEGIN OF T_VBRP OCCURS 0,
vbelnf like vbfa-vbeln, " Subseq sales & dist document
posnn like vbfa-posnn, " Subseq item of an SD document
VBTYP_N LIKE VBFA-VBTYP_N,
fkimg like vbrp-fkimg, " Actual billed quantity
netwr_b like vbrp-netwr,
kzwi5 like vbrp-kzwi5,
kzwi6 like vbrp-kzwi6,
BILL_CURR like vbrp-
TOT_BILL like vbrp-netwr,
DIFF like vbrp-netwr,
END OF T_VBRP.
data : toutdt like prps-post1,
touttm like prps-post1,
t_vbeln like vbrp-vbeln,
t_posnr like vbrp-posnr,
v_index like sy-index.
CNT TYPE N.
******************SELECTION SCREEN DECLARATION************************
selection-screen begin of block b1 with frame title text-001.
selection-screen skip 2.
select-options: s_vbeln for vbap-vbeln ,
s_posnr for vbap-posnr ,
s_wbs for vbap-ps_psp_pnr.
selection-screen skip 2.
selection-screen end of block b1.
Checking the correction of screen variable for Sales Document No
at selection-screen on s_vbeln.
if s_vbeln-low eq '' .
message E001.
endif.
if s_vbeln-high eq '' .
message E001.
endif.
Checking the correction of screen variable for Item
*at selection-screen on s_posnr.
if s_posnr-low eq '' or s_posnr-high eq ''.
message E002.
endif.
Checking Document No Entered
if s_vbeln-low ne ''.
select single vbeln into t_vbeln from vbap
where vbeln = s_vbeln-low.
endif.
if sy-subrc ne 0.
message E003.
endif.
if s_vbeln-high ne ''.
select single vbeln into t_vbeln from vbap
where vbeln = s_vbeln-high.
endif.
if sy-subrc ne 0.
message E003.
endif.
Checking Sales Document Item No Entered
if s_posnr-low ne ''.
select single posnr into t_posnr from vbap
where posnr = s_posnr-low.
endif.
if sy-subrc ne 0.
message E004.
endif.
if s_posnr-high ne ''.
select single posnr into t_posnr from vbap
where posnr = s_posnr-high.
endif.
if sy-subrc ne 0.
message E004.
endif.
Start-of-selection
PERFORM EVENTTAB_BUILD USING I_EVENTS[].
PERFORM E04_COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
PERFORM FIELD_CATALOG.
PERFORM SORT_ORDER.
PERFORM GUI_STATUS.
PERFORM BUILD_LAYOUT USING I_LAYOUT.
PERFORM DETAIL_SELECTION.
I_TEMP[] = I_OUT[].
DELETE I_OUT WHERE VBTYP_N <> 'M' AND
VBTYP_N <> 'O' AND
VBTYP_N <> 'P' AND
VBTYP_N <> 'N'.
cnt = 0.
describe table I_OUT lines cnt.
if cnt > 0.
perform clear_total_order_value.
perform value_selection.
perform value_updation. "Transferring data from T_VBRP to I_OUT
perform calculations.
PERFORM FINAL_BILL.
PERFORM CALCULATION.
LOOP AT I_TEMP.
W_TABIX = SY-TABIX.
READ TABLE I_OUT WITH KEY VBELN = I_TEMP-VBELN
POSNR = I_TEMP-POSNR
VBELNF = I_TEMP-VBELNF
POSNN = I_TEMP-POSNN
VBTYP_N = I_TEMP-VBTYP_N.
IF SY-SUBRC NE 0.
INSERT I_TEMP INTO I_OUT INDEX W_TABIX.
ENDIF.
ENDLOOP.
perform display_alv_grid_list.
ELSE.
MESSAGE E005.
ENDIF.
*& Form EVENTTAB_BUILD
text
-->P_I_EVENTS[] text
FORM EVENTTAB_BUILD USING T_EVENTS TYPE SLIS_T_EVENT.
DATA LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = T_EVENTS
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
MODIFY T_EVENTS FROM LS_EVENT
TRANSPORTING FORM
where name = slis_ev_top_of_page.
ENDIF.
READ TABLE T_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_USER_COMMAND TO LS_EVENT-FORM.
MODIFY T_EVENTS FROM LS_EVENT
TRANSPORTING FORM
where name = slis_ev_user_command.
ENDIF.
ENDFORM. " EVENTTAB_BUILD
*& Form E04_COMMENT_BUILD
text
-->P_GT_LIST_TOP_OF_PAGE text
FORM E04_COMMENT_BUILD USING T_LISTHEADER TYPE SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER.
LS_LINE-TYP = 'H'.
LS_LINE-INFO = 'AREVA T&D'.
APPEND LS_LINE TO T_LISTHEADER.
CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
EXPORTING
INPUT = SY-DATUM
IMPORTING
OUTPUT = TOUTDT.
CALL FUNCTION 'CONVERSION_EXIT_TIMLO_OUTPUT'
EXPORTING
INPUT = SY-UZEIT
IMPORTING
OUTPUT = TOUTTM.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Run Date and Time'.
CONCATENATE TOUTDT '-' TOUTTM INTO LS_LINE-INFO.
APPEND LS_LINE TO T_LISTHEADER.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'INV RECON REPORT'.
APPEND LS_LINE TO T_LISTHEADER.
ENDFORM. " E04_COMMENT_BUILD
*& Form FIELD_CATALOG
text
--> p1 text
<-- p2 text
FORM FIELD_CATALOG.
DATA :WW_FCAT TYPE SLIS_FIELDCAT_ALV,
COLCNT TYPE I.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'VBELN'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Sales Doc'.
WW_FCAT-seltext_m = 'Sales Doc No'.
WW_FCAT-seltext_l = 'Sales Document No'.
WW_FCAT-REPTEXT_DDIC = 'Sales Document'.
WW_FCAT-HOTSPOT = 'X'.
WW_FCAT-EMPHASIZE = 'C300'.
WW_FCAT-REF_FIELDNAME = 'vbeln'.
WW_FCAT-REF_TABNAME = 'VBAP'.
WW_FCAT-KEY = 'X'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'POSNR'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Item No'.
WW_FCAT-seltext_m = 'Sales Doc Item No'.
WW_FCAT-seltext_l = 'Sales Document Item No'.
WW_FCAT-REPTEXT_DDIC = 'Sales Document Item'.
WW_FCAT-REF_FIELDNAME = 'posnr'.
WW_FCAT-REF_TABNAME = 'VBAP'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-KEY = 'X'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'PS_PSP_PNR'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'WBS'.
WW_FCAT-seltext_m = 'WBS Element'.
WW_FCAT-seltext_l = 'WBS Element'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-REPTEXT_DDIC = 'WBS Element'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-REF_FIELDNAME = 'ps_psp_pnr'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'PRCTR'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Profit Cet'.
WW_FCAT-seltext_m = 'Profit Center'.
WW_FCAT-seltext_l = 'Profit Center'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-REPTEXT_DDIC = 'Profit Center'.
WW_FCAT-REF_FIELDNAME = 'prctr'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'MATNR'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Mat No'.
WW_FCAT-seltext_m = 'Material No'.
WW_FCAT-seltext_l = 'Material Number'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-REPTEXT_DDIC = 'Material Number'.
WW_FCAT-REF_FIELDNAME = 'matnr'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'ARKTX'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'SO Item Sh Text'.
WW_FCAT-seltext_m = 'SO Item Short Text'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-seltext_l = 'SO Item Short Text'.
WW_FCAT-OUTPUTLEN = '20'.
WW_FCAT-REPTEXT_DDIC = 'Short Txt For Sales ord Item'.
WW_FCAT-REF_FIELDNAME = 'arktx'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'KDMAT'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Customer Mat No'.
WW_FCAT-seltext_m = 'Customer Mat No'.
WW_FCAT-seltext_l = 'Customer Material No'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-REPTEXT_DDIC = 'Material No Used By Customer'.
WW_FCAT-OUTPUTLEN = '15'.
WW_FCAT-REF_FIELDNAME = 'kdmat'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'KWMENG'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Qty in Sales Units'.
WW_FCAT-seltext_m = 'Qty in Sales Units'.
WW_FCAT-seltext_l = 'Cumulative Qty in Sales Units'.
WW_FCAT-OUTPUTLEN = '10'.
WW_FCAT-EMPHASIZE = 'C600'.
WW_FCAT-REPTEXT_DDIC = 'Cumulative Ord Qty In Sales Units'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'NETWR'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Ord Value'.
WW_FCAT-seltext_m = 'Order Value'.
WW_FCAT-seltext_l = 'Total Order Value'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-EMPHASIZE = 'C500'.
WW_FCAT-REPTEXT_DDIC = 'Total Order Value'.
WW_FCAT-OUTPUTLEN = '15'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'WAERK'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Currency'.
WW_FCAT-seltext_m = 'Ord Val Currency'.
WW_FCAT-seltext_l = 'Ord Val Currency'.
WW_FCAT-EMPHASIZE = 'C200'.
WW_FCAT-REPTEXT_DDIC = 'Total Order Value Currency'.
WW_FCAT-OUTPUTLEN = '15'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'VBELNF'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Bill Doc No'.
WW_FCAT-seltext_m = 'Billing Doc No'.
WW_FCAT-seltext_l = 'Billing Document No'.
WW_FCAT-hotspot = 'X'.
WW_FCAT-REPTEXT_DDIC = 'Billing Document'.
WW_FCAT-EMPHASIZE = 'C300'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-REF_FIELDNAME = 'vbeln'.
WW_FCAT-REF_TABNAME = 'VBFA'.
WW_FCAT-OUTPUTLEN = '50'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'FKART'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Bill Typ'.
WW_FCAT-seltext_m = 'Billing Type'.
WW_FCAT-seltext_l = 'Billing Type'.
WW_FCAT-OUTPUTLEN = '10'.
WW_FCAT-EMPHASIZE = 'C400'.
WW_FCAT-REPTEXT_DDIC = 'Total Order Value Currency'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBRK'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'VBTYP_N'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Doc Categ'.
WW_FCAT-seltext_m = 'Document Categ'.
WW_FCAT-seltext_l = 'Document Category'.
WW_FCAT-OUTPUTLEN = '10'.
WW_FCAT-EMPHASIZE = 'C400'.
WW_FCAT-REPTEXT_DDIC = 'Total Order Value Currency'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBFA'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'POSNN'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-REPTEXT_DDIC = 'Billing Item No'.
WW_FCAT-REF_FIELDNAME = 'posnn'.
WW_FCAT-REF_TABNAME = 'VBFA'.
WW_FCAT-OUTPUTLEN = 15.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'FKIMG'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Billed Qty'.
WW_FCAT-seltext_m = 'Actual Billed Qty'.
WW_FCAT-seltext_l = 'Actual Billed Qty'.
WW_FCAT-REPTEXT_DDIC = 'Actual Billed Qty'.
WW_FCAT-EMPHASIZE = 'C400'.
WW_FCAT-OUTPUTLEN = '20'.
WW_FCAT-REF_FIELDNAME = 'fkimg'.
WW_FCAT-REF_TABNAME = 'VBRP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'TOT_QTY'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'B.Q. For Item'.
WW_FCAT-seltext_m = 'B.Q. For Sales Item'.
WW_FCAT-seltext_l = 'Total B.Q. For Item'.
WW_FCAT-EMPHASIZE = 'C600'.
WW_FCAT-REPTEXT_DDIC = 'Actual Billed Qty'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'DIFF_QTY'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'B.Q. TO Be Billed'.
WW_FCAT-seltext_m = 'B.Q. TO Be Billed'.
WW_FCAT-seltext_l = 'B.Q. TO Be Billed'.
WW_FCAT-EMPHASIZE = 'C700'.
WW_FCAT-REPTEXT_DDIC = 'Actual Billed Qty'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'NETWR_B'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Total Bill Val'.
WW_FCAT-seltext_m = 'Total Bill Value'.
WW_FCAT-seltext_l = 'Total Bill Value'.
WW_FCAT-REPTEXT_DDIC = 'Total Bill Value'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-EMPHASIZE = 'C400'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBRK'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'TOT_BILL'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Sum for Item'.
WW_FCAT-seltext_m = 'Sum for Item'.
WW_FCAT-seltext_l = 'Sum for Sales Item'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-EMPHASIZE = 'C500'.
WW_FCAT-EMPHASIZE = 'C411'.
WW_FCAT-REPTEXT_DDIC = 'Total Bill Value for Sales Item'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBRP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'DIFF'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'B.V. to be Billed'.
WW_FCAT-seltext_m = 'B.V. to be Billed'.
WW_FCAT-seltext_l = 'Total B.V. to be billed'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-EMPHASIZE = 'C611'.
WW_FCAT-EMPHASIZE = 'C700'.
WW_FCAT-REPTEXT_DDIC = 'Total Bill value to be billed'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'AMT'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Amt Claimed'.
WW_FCAT-seltext_m = 'Total Amt Claimed'.
WW_FCAT-seltext_l = 'Total Amt Claimed'.
WW_FCAT-OUTPUTLEN = '12'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'TOT_AMT'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'Sum for AMT'.
WW_FCAT-seltext_m = 'Sum for AMT Claimed'.
WW_FCAT-seltext_l = 'Sum for AMT Claimed'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-EMPHASIZE = 'C500'.
APPEND WW_FCAT TO IT_FIELDCAT.
CLEAR WW_FCAT.
colcnt = colcnt + 1.
WW_FCAT-COL_POS = colcnt.
WW_FCAT-FIELDNAME = 'DIFF_AMT'.
WW_FCAT-TABNAME = I_OUT.
WW_FCAT-seltext_s = 'AMT to be claimed'.
WW_FCAT-seltext_m = 'AMT to be claimed'.
WW_FCAT-seltext_l = 'AMT to be claimed'.
WW_FCAT-OUTPUTLEN = '12'.
WW_FCAT-EMPHASIZE = 'C611'.
WW_FCAT-EMPHASIZE = 'C700'.
WW_FCAT-REPTEXT_DDIC = 'Total Bill value to be billed'.
WW_FCAT-REF_FIELDNAME = 'kwmeng'.
WW_FCAT-REF_TABNAME = 'VBAP'.
APPEND WW_FCAT TO IT_FIELDCAT.
ENDFORM. " FIELD_CATALOG
*& Form SORT_ORDER
text
--> p1 text
<-- p2 text
FORM SORT_ORDER.
PERFORM SORT_ORDER_FILL USING: '01'
'VBELN'
'X'
PERFORM SORT_ORDER_FILL USING: '02'
'POSNR'
'X'
ENDFORM. " SORT_ORDER
*& Form SORT_ORDER_FILL
text
-->P_0898 text
-->P_0899 text
-->P_0900 text
-->P_0901 text
-->P_0902 text
FORM SORT_ORDER_FILL USING: P_SPOS TYPE SLIS_SPOS
P_FIELDNAME TYPE SLIS_FIELDNAME
P_UP TYPE SLIS_SOUP
P_DOWN TYPE SLIS_SODN
P_SUBTOT TYPE SLIS_DOSUB.
DATA: WA_SORT TYPE SLIS_SORTINFO_ALV.
WA_SORT-SPOS = P_SPOS.
WA_SORT-FIELDNAME = P_FIELDNAME.
WA_SORT-TABNAME = 'I_OUT'.
WA_SORT-UP = P_UP.
WA_SORT-DOWN = P_DOWN.
WA_SORT-SUBTOT = P_SUBTOT.
WA_SORT-GROUP = 'UL'.
WA_SORT-COMP = ' '.
WA_SORT-EXPA = ' '.
WA_SORT-OBLIGATORY = ' '.
APPEND WA_SORT TO IT_SORT.
ENDFORM. " SORT_ORDER_FILL
*& Form GUI_STATUS
text
--> p1 text
<-- p2 text
FORM GUI_STATUS.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 25
TEXT = 'Fetching Data'.
ENDFORM. " GUI_STATUS
*& Form DETAIL_SELECTION
text
--> p1 text
<-- p2 text
FORM DETAIL_SELECTION.
CLEAR I_OUT.
SELECT AVBELN APOSNR APS_PSP_PNR APRCTR AMATNR AMATNR
AARKTX AKDMAT AKWMENG ANETWR A~WAERK
BVBELN AS VBELNF BPOSNN B~VBTYP_N
APPENDING CORRESPONDING FIELDS OF TABLE I_OUT
FROM VBAP AS A
LEFT OUTER JOIN VBFA AS B
ON AVBELN = BVBELV AND
APOSNR = BPOSNV
WHERE A~VBELN IN S_VBELN AND
A~POSNR IN S_POSNR AND
A~PS_PSP_PNR IN S_WBS.
REFRESH S_VBELN.
REFRESH S_POSNR.
REFRESH S_WBS.
PERFORM SELECT_TYPE.
AND ( BVBTYP_N = 'M' OR BVBTYP_N = 'O' OR
B~VBTYP_N = 'P' )
ENDFORM. " DETAIL_SELECTION
*& Form value_selection
text
--> p1 text
<-- p2 text
FORM value_selection.
clear t_vbrp.
SELECT VBELN AS VBELNF POSNR AS POSNN
Thankd in advance
Similar Messages
-
Abt selection screen parameters
hi all
i have made a report with selection screen which has two parameters
but to run that report i have to fill that two fileds
is there any way that i can run my report without filling the two fields of my selection screen. Both the fields are used in the where condition in my inner join query.
thanx n regardsit is not mendatory to fill these two fields unless n until u'r not making them OBLIGATROY. n offcorse u'r query will run execute perfectly but just check the query whether there'r a huge recordset selected while u'r keeping these fileds blank. otherwise u should take them as OBLIGATORY parameters.
reward if useful
S@meer -
How to Add a new fields in the selection screen of LDB.
Hi All,
I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
So could you please tell me for that where i need to add the code for selecting the data.
Thanks
RoliHi
welcome to SDN forum
If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
if you wants to modify the std LDB of SAp means take the access key and to modify that code
if you add the extra field you have to modify the where conditions in the code also
see the doc
A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE.
Regards
anji -
Hi,
I have 2 currency varaibles in my variable selection screen. Now i want to remove one. I can't find these variables in query deffination.
Can you tell me how should i remove the currency conversion variables from the web template selection screen. where in query defination can I find it.. or i have to do it some other way..
Thanks and Regrds
raviHi Ravi,
if you just want to remove a variable its simple.
1.Go to the query designer.In the query designer selecting the appropriate info object its attached to it.
2. Right click and select the context menu -> restrict
3. IN the pop up window de select the variable you want to remove.
If it doesn't solve your problem post with more details abt your req.
Cheers,
Mathivanan -
Hi,
I use report RFDOPR10 which i copied into ZRFDOPR10 . This report uses
a LDB DDF. In the new report i need to set some values in the selection-screen such as DD_UMSKZ but can't catch up the screen field name.
Is there a way to solve it?
ThanksA logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
Less coding s required to retrieve data compared to normal internel tables.
Tables used LDB are in hierarchial structure.
Mainly we used LDBs in HR Abap Programming.
Where all tables are highly inter related so LDBs can optimize the performance there.
Check this Document. All abt LDB's
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
GO THROUGH LINKS -
http://www.sap-basis-abap.com/saptab.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Re: **LDB**
www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
www.sap-img.com/abap/abap-interview-question.htm
www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
Gothru the blog which provides info on LDB's:
/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
Sample code
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ SPFLI: , SPFLI-CARRID, SPFLI-CONNID,
SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ SFLIGHT: , SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ SBOOK: , SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ GET SFLIGHT LATE: , SFLIGHT-FLDATE. -
Dynamic Selection screen modification
Hi,
I have two radio buttons R_A and R_B and 2 parameters P_A and P_B on selsection screen
When i click on R_A , P_A should be visible ---> It Works
When i click on R_B , P_B should be visible ---> It Works
But after clicking on R_B if i click on R_A, then P_B is visble and P_A is not visible.
How should i go abt this.???HI,
Chk this:
Selection-screen begin of block b1 WITH FRAME NO INTERVALS.
Parameters: s1 radiobutton group g1 user-command u1 default 'X',
p_name(10) MODIF ID M1,
p_email(20) MODIF ID M1,
s2 radiobutton group G1.
Parameters: p_name1(10) MODIF ID M2,
p_fax(10) MODIF ID M2.
Selection-screen end of block b1 .
AT SELECTION-SCREEN OUTPUT.
* IF S_BOX = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'M3'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ELSE.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
* ENDIF.
IF S1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'M2'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ELSEIF SCREEN-GROUP1 = 'M1'.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF S2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'M1'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ELSEIF SCREEN-GROUP1 = 'M2'.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
regards,
madhumitha -
DYNAMIC SELECTIONS IN SELECTION SCREEN
I DONNO ANYTHING ABT DYNAMIC SELECTIONS. CUD U PLZ TELL ME HOW TO GIVE DYNAMIC SELECTIONS FOR ANY FIELD?
hi
good
check this
The statement
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
declares a node <node> of a logical database for dynamic selections in the selection include.
To use the dynamic selections in the SELECT statements of the subroutine PUT_<node>, you must use the data object DYN_SEL. The data object DYN_SEL is automatically generated in the logical database program as follows:
TYPE-POOLS RSDS.
DATA DYN_SEL TYPE RSDS_TYPE.
You do not have to program these lines yourself. The data object DYN_SEL is available in the database program but not in a connected executable program.
The type RSDS_TYPE of the data object is defined in the type group RSDS as follows:
TYPE-POOL RSDS.
WHERE-clauses ------------------------------
TYPES: RSDS_WHERE_TAB LIKE RSDSWHERE OCCURS 5.
TYPES: BEGIN OF RSDS_WHERE,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
WHERE_TAB TYPE RSDS_WHERE_TAB,
END OF RSDS_WHERE.
TYPES: RSDS_TWHERE TYPE RSDS_WHERE OCCURS 5.
Expressions Polish notation ---------------
TYPES: RSDS_EXPR_TAB LIKE RSDSEXPR OCCURS 10.
TYPES: BEGIN OF RSDS_EXPR,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
EXPR_TAB TYPE RSDS_EXPR_TAB,
END OF RSDS_EXPR.
TYPES: RSDS_TEXPR TYPE RSDS_EXPR OCCURS 10.
Selections as RANGES-tables -----------------
TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
TYPES: BEGIN OF RSDS_FRANGE,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
SELOPT_T TYPE RSDS_SELOPT_T,
END OF RSDS_FRANGE.
TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
TYPES: BEGIN OF RSDS_RANGE,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FRANGE_T TYPE RSDS_FRANGE_T,
END OF RSDS_RANGE.
TYPES: RSDS_TRANGE TYPE RSDS_RANGE OCCURS 10.
Definition of RSDS_TYPE
TYPES: BEGIN OF RSDS_TYPE,
CLAUSES TYPE RSDS_TWHERE,
TEXPR TYPE RSDS_TEXPR,
TRANGE TYPE RSDS_TRANGE,
END OF RSDS_TYPE.
http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
reward point if helpful.
thanks
mrutyun^ -
Hi ,
My requirement is to put the description ( in blue colour ) of the input field on the selection screen on the right handside of the field after the user enters a certain value.
How do i go abt it..Plz help .
Thanx nd regards,
SresthaHI,
check this example report it is doing the same.
<b>REPORT zwa_test1 line-size 132 line-count 60.
TABLES: fmfincode.
SELECTION-SCREEN BEGIN OF LINE.
selection-screen comment (11) text-004.
parameters : fcode type fmfincode-fincode .
parameters: fc_desc(50) MODIF ID FC visible length 40 default 'abc'.
SELECTION-SCREEN END OF LINE.
AT selection-screen output.
LOOP at screen .
IF screen-group1 = 'FC'.
Screen-input = 0.
SCREEN-INTENSIFIED = 1.
Modify screen.
endif.
ENDLOOP.
at selection-screen on fcode.
SELECT SINGLE beschr FROM FMFINT INTO fc_desc
WHERE FINCODE = fcode.</b>
REgards,
HRA
Message was edited by: HRA
Message was edited by: HRA -
Can we display a message before selection screen
hi experts,
I need to give a message to user's to give information abt the selection screen .
like select values between 1000 to 2000 only.
date must be todays date.
so how i can display a message before the selection screen is displayedtry like this it may be useful for you.
load-of-program.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = 'Selection screen info'
TEXTLINE1 = 'Material no should be between 1000 and 2000'
TEXTLINE2 = 'Plant should be 1000'
* START_COLUMN = 25
* START_ROW = 6
start-of-selection.
if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.
regards
shiba dutta -
Regarding Selection Screen field making display field in ALV report
Hi All,
In ALV Report, at runtime how can i make the field as Display Field in selection screen .
Thks & Regds
Shaileshhii,
Go to se38 and give the below progra name execute.... check the source code it is very easy to understand.
1.demo_dynpro_modify_simple
2.demo_dynpro_modify_screen
if tou are using grid,u can refer to foll link
sequencing / choosing fields in report screen at runtime,
Display the Columns in the grid at run time
rgrds,
Shweta -
Help Needed in At selection screen output
Hi Experts,
I need your help in AT SELECTION SCREEN OUTPUT event. My issue is i have 4 radio button and with each radio button couple of parameters that need to be filled in selection screen of report. My requirement is that sometimes user enters details in second radio button parameters but forgot to change the radio button to second one so kindly suggest a solution so that radio button gets selected as per user input in parameter like if user clicks on certain parameter to enter value then automatically corresponding radio button gets selected.
Thanks in advance for all your help.example from a checkbox in one of my progs..but you can do same approach with radio butts
parameters p_test as checkbox default abap_on user-command test.
at selection-screen.
if sy-ucomm = 'TEST'.
perform birth_mnth_chck.
endif. -
Help needed in selection screen - Urgent
Hi Experts,
I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
e.g : if radiobutton1 is selected, njo activation needed,
if radiobutton2 is selected, activate selection screen parameter p_one,
if radiobutton3 is selected, activate selection screen parameter p_two.
All three radiobuttons are attached to the same radio button group.
I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
p_one - NULL
p_two - t01
p_three - t02.
on the selection of a radio button I want the corresponding parameter to get activated.
please help me.
Regards,
Arul jothi A.hi
jothi
AT SELECTION-SCREEN OUTPUT.
CASE SY-TCODE.
WHEN 'ZEDI6'.
LOOP AT SCREEN.
CASE SCREEN-GROUP4.
WHEN '001'. "Sales order select
SCREEN-ACTIVE = '1'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '002'. "Delivery select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '003'. "Invoice select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '004'. "PO Select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
regards
praveen -
Compare the input filename in the selection screen
In the selection screen input field
there is an option of selecting the directory and file name and not the extension .
This is used to download the datas
Extension can be selected by using the option button
rtf
csv.
the user has to give only the filename and not the extension.
suppose if the user input is C:\temp\file1.rtf.
Either i should take only the filename
or i should display the message give only the filename and not the extension . its already been selected!!!!
I want to compare the input string contains .doc
how to do the comparison and to get the above results mentiond
Thanks in advanceBecause the requirment is there are two option buttion for selecting the download file format
But unknowingly if the user gives the filename along with the extension. I need to handle that error
giving some error message or information message
By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever
so how to do that
then after comparing that i should give the user a msg doc type is already selected give only the filename
I hope u understand my req -
Change selection screen in LDB (KDF logical database - NOT HR)
Hi All,
Iu2019d like to use KDF logical database to keep the dynamic selections since user wants to use it but I need to change the selection screen itself. The existing variants for KDF donu2019t meet the user requirements. Some fields I need to hide some add. Like I want to u201Cremoveu201D the field u2018Posting periodu2019 (MONAT) (which is available in dynamic selection screen) and put it on the u201Cmainu201D selection screen.
Do I need to create my own logical database or there is a way around?
Could someone give me a practical advice or sample of solution?
Thanks a lot.Thanks Himanshu,
I did as you suggested but problem is that it does not allow me to hide the whole block.
I have 3 filelds actually on block KD_0 I need to hide (its from selection screen of KDF logical database.)
SELECT-OPTIONS: KD_LIFNR FOR LFA1-LIFNR MATCHCODE OBJECT KRED.
SELECT-OPTIONS: KD_BUKRS FOR LFB1-BUKRS.
SELECTION-SCREEN END OF BLOCK KD_0.
PARAMETERS KD_INDEX AS SEARCH PATTERN FOR TABLE LFA1.
What I did is below. I used sp instead of u201C=u201D since it has many screen for field KD_LIFNR(for frame, text etc).
And when I did just for KD_LIFNR it was hidden but when I did the same for KD_BUKRS it was not hidden . The field has stars u201C*********u201D in it.
Same happen with KD_INDEX. The name of the field is hidden but field not and it filled with ********. Do you have any ideas what it can be?
I debugged it to catch all screen names but no luck
loop at screen.
if screen-name cp 'KD_LIFNR' or
screen-name cp 'KD_BUKRS' or
screen-name cp 'KD_INDEX' or
screen-name = '%B000003_BLOCK_1000' or
screen-name = 'SSCRTEXTS-FRAME_TEXT' or
screen-name = 'SSCRTEXTS-MCID_TEXT' or
screen-name = 'SSCRTEXTS-STRNG_TEXT' or
screen-name = 'SSCRFIELDS-SEARCH_BTN' or
screen-name = '%B025008_BLOCK_1000' or
screen-name = '%F021010_1000' or
screen-name = 'ALCUR' or
screen-name = '%F022012_1000' or
screen-name = 'EXCDT' or
screen-name = 'SSCRFIELDS-UCOMM'.
screen-invisible = '1'.
modify screen.
endif.
endloop. -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja
Maybe you are looking for
-
Upgrade 9i to 10g Performance Issue
Hi All, DBA team recently upgraded the database from 9i to 10g (Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi). There is a process as follows Mainframe --> Flat file --> (Informatica) --> Oracle DB --> (processing through SPs) -->
-
I am running 2 desktops (G4, G5) and a Laptop (G3). Sometimes I run them together as a network and sometimes I run them as individual computers. I have been doing this for over a year with no problem. Just this week, my mouse began clicking to "show
-
Exchange Rate derived from OB08 while making payments
Dear Team, We have posted a document with exchange rate 1Euro = 70 Inr manually, but when i post a payment transaction for the same in INR the exchange rate for the same line item is derived based on the rate maintained in OB08 for EURX Exchange Rate
-
Outline an object with a dash line in PS CS6
I have a silhouetted figure I'd like to outline with a dash line ... I understand the basic concept, but will I have to manually outline the object ... can't seem to get it to work out ... what alternative do I have?
-
Any sample code for an Extractor to read in a flat file?
Hi SAP gurus, Are there any sample code for an extractor to read in a flat file? Are there any documentation on custom coding an extractor to dump information into an info source? Are there any documentation on the pit falls and contraints using Solu