MB51 should come in ALV format
Hi,
When we are running the Transaction MB51 with a Material, it displayed the output in a standard format. In this screen, one icon is showing i.e. Detail List. After click on it, it shows the output in ALV format.
We want that when we execute the MB51 transaction, the output should come in ALV format directly.. means standard format must be skip.
Note: - I try to skip this screen by the SHD0, but there is not any screen number to do so.
Please tell me, how can i skip that standard screen and open in ALV format directly....
Regards...
Hi, Dear
Check the Sample Program Given Bellow hope will help you to solve out your problem,
TABLES: mseg, mkpf, makt.
TYPES: BEGIN OF ty_mb51,
werks LIKE mseg-werks,
matnr LIKE mseg-matnr,
maktx LIKE makt-maktx,
budat LIKE mkpf-budat,
mblnr LIKE mkpf-mblnr,
shkzg LIKE mseg-shkzg,
menge LIKE mseg-menge,
meins LIKE mseg-meins,
cputm LIKE mkpf-cputm,
END OF ty_mb51.
SELECT-OPTIONS: somatnr FOR mseg-matnr OBLIGATORY.
DATA: it_mb51 TYPE STANDARD TABLE OF ty_mb51,
wa_mb51 LIKE LINE OF it_mb51.
SELECT mseg~werks
mseg~matnr
makt~maktx
mkpf~budat
mkpf~mblnr
mseg~shkzg
mseg~menge
mseg~meins
mkpf~cputm
INTO CORRESPONDING FIELDS OF TABLE it_mb51
FROM mseg INNER JOIN mkpf ON ( mseg~mblnr = mkpf~mblnr AND mseg~mjahr = mkpf~mjahr )
INNER JOIN makt ON ( mseg~matnr = makt~matnr AND makt~spras = 'E' )
WHERE mseg~matnr IN somatnr.
LOOP AT it_mb51 INTO wa_mb51.
IF wa_mb51-shkzg = 'H'.
MULTIPLY: wa_mb51-menge BY -1.
MODIFY it_mb51 FROM wa_mb51 INDEX sy-tabix.
ENDIF.
ENDLOOP.
LOOP AT it_mb51 INTO wa_mb51.
WRITE: / wa_mb51-werks, wa_mb51-matnr, wa_mb51-maktx, wa_mb51-budat, wa_mb51-mblnr, wa_mb51-menge, wa_mb51-meins, wa_mb51-cputm.
AT LAST.
SUM.
WRITE: /90(15) wa_mb51-menge.
ENDAT.
ENDLOOP.
Best Regards,
Faisal
Similar Messages
-
Need a POP-UP which can display internal table data in ALV format
HI All,
I need to display INTERNAL TABLE values through a POP-UP. Only condition is that the window with the internal table data should be in ALV format and not in TEXT only format.
To clarify, I used FM 'POPUP_WITH_TABLE_DISPLAY_OK' and 'POPUP_WITH_TABLE_DISPLAY', but both display the data in TEXT format and there is no provision to put the FIELD names there. Everthing needs to be put into internal table and it displays it in text format.
So I want a FM where I can display internal tabel data in ALV format( same format that would appear if you creata search help for a filed and output window would have all the ALV features like SORT buttons etc.
Hope there is some FM to achieve this ALV format data thing.
Thanks in advance for all your help.
Regards
FX3check this
REPORT y_demo_alv_3.
TYPE-POOLS: slis.
DATA: BEGIN OF i_outtab OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: w_chk TYPE c. "For multiple selection
DATA: END OF i_outtab.
* I_OUTTAB TYPE SFLIGHT OCCURS 0,
DATA: i_private TYPE slis_data_caller_exit,
i_selfield TYPE slis_selfield,
W_exit(1) TYPE c.
PARAMETERS: p_title TYPE sy-title.
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE i_outtab.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = p_title
i_selection = 'X'
i_zebra = 'X'
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
i_checkbox_fieldname = 'W_CHK'
* I_LINEMARK_FIELDNAME =
* I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'I_OUTTAB'
i_structure_name = 'SFLIGHT'
* IT_FIELDCAT =
* IT_EXCLUDING =
* I_CALLBACK_PROGRAM =
* I_CALLBACK_USER_COMMAND =
* IS_PRIVATE = I_PRIVATE
IMPORTING
es_selfield = i_selfield
e_exit = w_exit
TABLES
t_outtab = i_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE i000(0k) WITH sy-subrc.
ENDIF.
*****the internal table is modified with a cross sign for marking the
***rows selected
LOOP AT i_outtab WHERE w_chk = 'X'.
WRITE: / i_outtab-carrid, i_outtab-price.
ENDLOOP. -
Modification in report into ALV Format
Hi Experts
How can I modify this report in ALV Format with Top of page and Parameters should be display on runtime.
Can anyone modify my program please
Thanks in advanced.
REPORT FZEL LINE-SIZE 220 LINE-COUNT 75
NO STANDARD PAGE HEADING.
TABLES : equi,
equz,
imptt,
imrg,
eqkt,
iloa.
TYPES: BEGIN OF ty_data ,
equnr type equnr, " Euipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
recdu type imrg-recdu, " Unit of measuring ='KM','L','H'
recdv type imrg-recdv, " Counter reading data
cancl type imrg-cancl,
END OF ty_data.
TYPES: BEGIN OF ty_final,
equnr type equnr, " Equipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
min_date_km type imrg-idate, " Min Date
min_km type imrg-recdv, " Max Km
max_date_km type imrg-idate,
max_km type imrg-recdv, " Min km
t_max_min_km type imrg-recdv, " Total min_km-max_km
min_date_hr type imrg-idate, " Max Date
min_hr type imrg-recdv, " Max hr
max_date_hr type imrg-idate,
max_hr type imrg-recdv, " Min hr
t_max_min_hr type imrg-recdv, " Total min_hr-max_hr
min_date_lit type imrg-idate,
min_lit type imrg-recdv, " Min lit
max_date_lit type imrg-idate,
max_lit type imrg-recdv, " Max lit
fuel_con type imrg-recdv, " Total_hrs / t_max_min_hr
fuel_con2 type imrg-recdv, " Total_hrs / t_max_min_hr
km_l type imrg-recdv, " t max_min_km / t_max_min_lit
l_p type imrg-recdv , " t_max_min_lit / t_max_min_hr
l_p2 type imrg-recdv ,
END OF ty_final.
DATA: i_data TYPE TABLE OF ty_data, " internal table
wa_data TYPE ty_data, " work area
i_final TYPE TABLE OF ty_final, " internal table
wa_final TYPE ty_final. " work area
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: p_equnr FOR equi-equnr OBLIGATORY, "no-extension no intervals,
p_idate FOR imrg-idate. "NO-EXTENSION NO INTERVALS OBLIGATORY,
"p_recdu FOR imrg-recdu." NO-EXTENSION NO INTERVALS ."default 'M3'" OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN END OF BLOCK blk.
TOP-OF-PAGE.
FORMAT INTENSIFIED ON.
WRITE:/55(40) ' WAGNERS INVESTMENT LIMITED '.
WRITE:/50(40) ' VEHICLE FUEL CONSUMPTION REPORT ' CENTERED ,
2 'Page', sy-pagno.
FORMAT INTENSIFIED OFF.
WRITE:/50(40) '----
' CENTERED .
FORMAT INTENSIFIED ON.
WRITE:/2 sy-datum COLOR 3, sy-uzeit .
"WRITE:/1 S903-SPMON ."p_yearf.
ULINE.
"CENTERED.
write: /2 'Equipment No :'left-justified,p_equnr-low color 2 , ' to ' , p_equnr-high color 2.
write: /2 'Date From :', p_idate-low color 2 , ' to ' , p_idate-high color 2.
"write: /2 'Sort Field:'left-justified,p_eqfnr-low color 2 , ' to ' , p_eqfnr-high color 2.
SKIP.
ULINE.
WRITE:/1 sy-vline,
2 ' EQUIP#', 10 sy-vline ,
11 ' NAME', 40 sy-vline,
41 ' SORT', 60 sy-vline,
61 ' START DATE', 74 sy-vline,
75 ' END DATE', 87 sy-vline,
88 ' START KM', 100 sy-vline,
101 ' END KM' , 113 sy-vline,
114 ' TOTAL KM', 126 sy-vline,
127 ' START HR', 139 sy-vline,
140 ' END HR', 152 sy-vline,
153 ' TOTAL HR', 167 sy-vline,
168 ' FUEL CON ', 180 sy-vline,
181 ' KM L', 193 sy-vline,
194 ' LIT PER HR ', 206 sy-vline,
207 ' EQUIP NO', 220 sy-vline,
223 'KM L', 232 sy-vline,
233 'LIT PER KM', 245 sy-vline,
246 'TOTAL L/HR', 258 sy-vline.
FORMAT COLOR 3 ON.
ULINE.
END-OF-PAGE.
START-OF-SELECTION.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate and
e~cancl ne 'X'.
loop at i_data into wa_data.
CLEAR: wa_final.
READ TABLE i_final into wa_final
with key equnr = wa_data-equnr." BINARY SEARCH.
if sy-subrc EQ 0.
PERFORM F_GET_MAX_DATA.
PERFORM F_GET_MAX_HOURS.
PERFORM F_GET_MAX_LIT.
PERFORM prepare_final_rec USING'M'. " Modify Existing Record
ElSE.
PERFORM prepare_final_rec USING'A'. " Append New Record.
ENDIF.
ENDLOOP.
LOOP AT i_final into wa_final.
on change of wa_final-equnr.
WRITE:/1 sy-vline,
2 wa_final-equnr , 10 sy-vline,
11 wa_final-eqktx , 40 sy-vline,
41 wa_final-eqfnr , 60 sy-vline,
61 wa_final-min_date_km color 2 , 74 sy-vline,
75 wa_final-max_date_km color 2 LEFT-JUSTIFIED , 87 sy-vline,
88 wa_final-min_km EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED color 3 , 100 sy-vline,
101 wa_final-max_km EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED color 3 , 113 sy-vline,
114 wa_final-t_max_min_km EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED , 126 sy-vline,
127 wa_final-min_hr EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED color 4 , 139 sy-vline,
140 wa_final-max_hr EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED color 4 , 152 sy-vline,
153 wa_final-t_max_min_hr EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED , 167 sy-vline,
168 wa_final-fuel_con2 EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED , 180 sy-vline,
181 wa_final-km_l EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED ,193 sy-vline,
194 wa_final-l_p2 EXPONENT 0 DECIMALS 2 LEFT-JUSTIFIED color 2 , 206 sy-vline,
207 wa_final-equnr ,220 sy-vline.
endon.
endloop.
refresh i_final.
clear i_final.
FORM F_GET_MAX_DATA.
select single MAX( eidate ) Min( eidate ) MAX( erecdv ) MIN( erecdv )
into corresponding fields of (wa_final-max_date_km,wa_final-min_date_km,wa_final-max_km ,wa_final-min_km)
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'KM'
AND a~equnr = wa_data-equnr.
ENDFORM.
FORM F_GET_MAX_HOURS.
select single MAX( erecdv ) MIN( erecdv )
into corresponding fields of (wa_final-max_hr, wa_final-min_hr)
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'H'
AND a~equnr = wa_data-equnr .
ENDFORM.
FORM F_GET_MAX_LIT.
select SUM( e~recdv )
into corresponding fields of (wa_final-fuel_con2)
from equi AS a
inner join eqkt as b
on bequnr = aequnr
inner join imptt as c
on cmpobj = aobjnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'L'
AND a~equnr = wa_data-equnr.
ENDFORM.
FORM prepare_final_rec USING p_mode TYPE char1.
wa_final-t_max_min_km = wa_final-max_km - wa_final-min_km .
wa_final-t_max_min_hr = wa_final-max_hr - wa_final-min_hr.
if wa_final-t_max_min_km <> 0 .
wa_final-km_l = ( wa_final-max_km - wa_final-min_km ) / ( wa_final-fuel_con2 ) .
ELSE.
wa_final-km_l = 0.
endif.
if wa_final-t_max_min_hr <> 0 .
wa_final-l_p2 = ( wa_final-fuel_con2 ) / ( wa_final-t_max_min_hr ) .
ELSE.
wa_final-l_p2 = 0.
endif.
IF p_mode = 'A'.
wa_final-equnr = wa_data-equnr.
wa_final-eqktx = wa_data-eqktx.
wa_final-eqfnr = wa_data-eqfnr.
wa_final-t_max_min_km = wa_final-min_km - wa_final-max_km .
wa_final-t_max_min_hr = wa_final-max_hr - wa_final-min_hr.
wa_final-km_l = ( wa_final-max_km - wa_final-min_km ) / ( wa_final-fuel_con2 ).
wa_final-l_p2 = ( wa_final-fuel_con2 ) / ( wa_final-t_max_min_hr ) .
APPEND wa_final TO i_final .
ELSE.
MODIFY i_final FROM wa_final
TRANSPORTING
eqfnr
max_date_km
min_date_km
max_date_lit
min_date_lit
max_date_hr
min_date_hr
max_km
min_km
max_hr
min_hr
t_max_min_km
t_max_min_hr
fuel_con2
km_l
l_p2
where equnr = wa_data-equnr.
ENDIF.
ENDFORM. " PREPARE_FINAL_RECHi Guys
Thanks for your reply, I know how to implement the FM for ALV but little confused where to call , See my correction below it is displaying the result in different way that ie...first displaying Equipment no, name,.correctly but the other values such as km,L,HR all are displaying zero first, when I press back then it is displying the value twice thrise........keep on displaying duplicate records continuesly when back back is press can anyone correct this please
REPORT XYZ LINE-SIZE 220 LINE-COUNT 75
NO STANDARD PAGE HEADING.
TABLES : equi,
equz,
imptt,
imrg,
eqkt,
iloa.
type-pools: slis. "ALV Declarations
TYPES: BEGIN OF ty_data ,
equnr type equnr, " Euipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
recdu type imrg-recdu, " Unit of measuring ='KM','L','H'
recdv type imrg-recdv, " Counter reading data
cancl type imrg-cancl,
END OF ty_data.
TYPES: BEGIN OF ty_final,
equnr type equnr, " Equipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
min_date_km type imrg-idate, " Min Date
min_km type P DECIMALS 2, " Max Km
max_date_km type imrg-idate,
max_km type P DECIMALS 2, " Min km
t_max_min_km type P DECIMALS 2, " Total min_km-max_km
min_date_hr type imrg-idate, " Max Date
min_hr type P DECIMALS 2, " Max hr
max_date_hr type imrg-idate,
max_hr type P DECIMALS 2, " Min hr
t_max_min_hr type P DECIMALS 2, " Total min_hr-max_hr
min_date_lit type imrg-idate,
min_lit type P DECIMALS 2, " Min lit
max_date_lit type imrg-idate,
max_lit type P DECIMALS 2, " Max lit
fuel_con type P DECIMALS 2, " Total_hrs / t_max_min_hr
fuel_con2 type P DECIMALS 2, " Total_hrs / t_max_min_hr
km_l type P DECIMALS 2, " t max_min_km / t_max_min_lit
l_p type P DECIMALS 2 , " t_max_min_lit / t_max_min_hr
l_p2 type P DECIMALS 2 ,
END OF ty_final.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid.
DATA: i_data TYPE TABLE OF ty_data, " internal table
wa_data TYPE ty_data, " work area
i_final TYPE TABLE OF ty_final, " internal table
wa_final TYPE ty_final. " work area
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: p_equnr FOR equi-equnr OBLIGATORY, "no-extension no intervals,
p_idate FOR imrg-idate. "NO-EXTENSION NO INTERVALS OBLIGATORY,
"p_recdu FOR imrg-recdu." NO-EXTENSION NO INTERVALS ."default 'M3'" OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN END OF BLOCK blk.
TOP-OF-PAGE.
FORMAT INTENSIFIED ON.
WRITE:/55(40) ' WAGNERS INVESTMENT LIMITED '.
WRITE:/50(40) ' VEHICLE FUEL CONSUMPTION REPORT ' CENTERED ,
2 'Page', sy-pagno.
FORMAT INTENSIFIED OFF.
WRITE:/50(40) '----
' CENTERED .
FORMAT INTENSIFIED ON.
WRITE:/2 sy-datum COLOR 3, sy-uzeit .
"WRITE:/1 S903-SPMON ."p_yearf.
ULINE.
"CENTERED.
write: /2 'Equipment No :'left-justified,p_equnr-low color 2 , ' to ' , p_equnr-high color 2.
write: /2 'Date From :', p_idate-low color 2 , ' to ' , p_idate-high color 2.
END-OF-PAGE.
START-OF-SELECTION.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate and
e~cancl ne 'X'.
loop at i_data into wa_data.
CLEAR: wa_final.
READ TABLE i_final into wa_final
with key equnr = wa_data-equnr." BINARY SEARCH.
if sy-subrc EQ 0.
PERFORM F_GET_MAX_DATA.
PERFORM F_GET_MAX_HOURS.
PERFORM F_GET_MAX_LIT.
PERFORM prepare_final_rec USING'M'. " Modify Existing Record
ElSE.
PERFORM prepare_final_rec USING'A'. " Append New Record.
perform build_fieldcatalog.
perform build_layout.
perform display_alv_report.
ENDIF.
ENDLOOP.
refresh i_final.
clear i_final.
FORM F_GET_MAX_DATA.
select single MAX( eidate ) Min( eidate ) MAX( erecdv ) MIN( erecdv )
into corresponding fields of (wa_final-max_date_km,wa_final-min_date_km,wa_final-max_km ,wa_final-min_km)
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'KM'
AND a~equnr = wa_data-equnr.
ENDFORM.
FORM F_GET_MAX_HOURS.
select single MAX( erecdv ) MIN( erecdv )
into corresponding fields of (wa_final-max_hr, wa_final-min_hr)
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'H'
AND a~equnr = wa_data-equnr .
ENDFORM.
FORM F_GET_MAX_LIT.
select SUM( e~recdv )
into corresponding fields of (wa_final-fuel_con2)
from equi AS a
inner join eqkt as b
on bequnr = aequnr
inner join imptt as c
on cmpobj = aobjnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~cancl ne 'X' and
e~recdu = 'L'
AND a~equnr = wa_data-equnr.
ENDFORM.
FORM prepare_final_rec USING p_mode TYPE char1.
wa_final-t_max_min_km = wa_final-max_km - wa_final-min_km .
wa_final-t_max_min_hr = wa_final-max_hr - wa_final-min_hr.
if wa_final-t_max_min_km <> 0 .
wa_final-km_l = ( wa_final-max_km - wa_final-min_km ) / ( wa_final-fuel_con2 ) .
ELSE.
wa_final-km_l = 0.
endif.
if wa_final-t_max_min_hr <> 0 .
wa_final-l_p2 = ( wa_final-fuel_con2 ) / ( wa_final-t_max_min_hr ) .
ELSE.
wa_final-l_p2 = 0.
endif.
IF p_mode = 'A'.
wa_final-equnr = wa_data-equnr.
wa_final-eqktx = wa_data-eqktx.
wa_final-eqfnr = wa_data-eqfnr.
wa_final-t_max_min_km = wa_final-min_km - wa_final-max_km .
wa_final-t_max_min_hr = wa_final-max_hr - wa_final-min_hr.
wa_final-km_l = ( wa_final-max_km - wa_final-min_km ) / ( wa_final-fuel_con2 ).
gd_repid = sy-repid.
wa_final-l_p2 = ( wa_final-fuel_con2 ) / ( wa_final-t_max_min_hr ) .
APPEND wa_final TO i_final .
ELSE.
MODIFY i_final FROM wa_final
TRANSPORTING
eqfnr
max_date_km
min_date_km
max_date_lit
min_date_lit
max_date_hr
min_date_hr
max_km
min_km
max_hr
min_hr
t_max_min_km
t_max_min_hr
fuel_con2
km_l
l_p2
where equnr = wa_data-equnr.
ENDIF.
ENDFORM. " PREPARE_FINAL_REC
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EQUNR'.
fieldcatalog-seltext_m = 'Equip no'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EQKTX'.
fieldcatalog-seltext_m = 'Description'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EQFNR'.
fieldcatalog-seltext_m = 'Sortfield'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MIN_DATE_KM'.
fieldcatalog-seltext_m = 'Min Date'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MAX_DATE_KM'.
fieldcatalog-seltext_m = 'Max Date'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MIN_KM' .
fieldcatalog-seltext_m = 'Min KM'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MAX_KM' .
fieldcatalog-seltext_m = 'Max KM'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'T_MAX_MIN_KM' .
fieldcatalog-tabname = 'i_final'.
fieldcatalog-seltext_m = 'Total KM'.
fieldcatalog-col_pos = 7.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MIN_HR' .
fieldcatalog-seltext_m = 'Min Hr'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MAX_HR' .
fieldcatalog-seltext_m = 'Max Hr'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 9.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'T_MAX_MIN_HR' .
fieldcatalog-seltext_m = 'Total HR'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'FUEL_CON2' .
fieldcatalog-seltext_m = 'Km/L'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 11.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'L_P2' .
fieldcatalog-seltext_m = 'Lit/HR'.
fieldcatalog-tabname = 'i_final'.
fieldcatalog-col_pos = 12.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
is_variant = z_template
tables
t_outtab = i_final
exceptions
program_error = 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.
endform. " DISPLAY_ALV_REPORT -
Table to be displayed in ALV format in WD.
Hi Experts,Gurus.
I want to display data in the ALV format in my web dynpro component. Can any please tell the procedure to achieve this
Regards,
Yugeshhi Yugesh ,
refer this article :
SAP List Viewer (ALV) [original link is broken]
Configuring ALV
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706;jsessionid=(J2EE3414800)ID0133346050DB00727847586176044227End?overridelayout=true&bcsi_scan_06B6B0A4B65849C2=0
using ALV
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4;jsessionid=(J2EE3417400)ID0488867050DB10849380333905377829End
hope these basic tutorials help u .
regards,
amit -
Updated record should come in txt file
Hi Friends,
My requirements like this way, any changes make in mara, mard, mbew, makt, vbak, vbap, vbrk and abrp table. that newly created data should come in .txt file of application server.
I have already developed a program for that. it is downloading data in every 3 hours slots. it is running in background. whatever changes made during these hours it will download.
now, my requirement has been changed, instance data should come in .txt file of app server. e.g. when newly created record save in database table, same time that record should come in .txt file with proper format.
is it possible? please let me know.
Thanks in advance,
ParagHi Parag,
To obtain changes you know you can get the details from the tables CDHDR and CDPOS.
Also you have questions about performance and so. SO here are some details.
- When you flag a data element for change document (is checked) it is ONLY a marker that allows for registration of this field's changes into CDHDR and CDPOS. The actual control is done on datafile level in its technical settings (Transaction SE11 with datafile name and then push button "Technical Settings" or CtrlShiftF9). Herein you will find a flag "Log data changes".
Within the CDHDR file and CDPOS file a field OBJECTCLAS is used. Only for existing OBJECTCLAS values the changes are logged.
- Now obvious this is the trick for standard SAP (as Subramanian has already pointed out you can find "OBJECTCLAS" values with transaction SCDO). If you want to know on how to create your own "OBJECTCLAS" values with working logging on your own designed fields follow Subramanian suggestion and read the documentation.
Now to your questions:
You gave some tables you need to track changes (and now also for initial creation) like MARA, MARD, MAKT and others.
To get changes for these tables use the following "OBJECTCLAS" values:
- MATERIAL (Tables MARA, MARC, MARD, MBEW, MFHM, MLGN, MLGT, MPGD, MPOP and MVKE). By-the-way, this object will be replaced by MATERIAL_N (available from release 4.6x).
- VERKBELEG (Tables VBAK, VBAP, VBEP, VBKD, VBLB, VBPA, VBPA2 and VBUK).
To collect changes (suggested by Andreas) you could use function module CHANGEDOCUMENT_READ. This is very usefull if also archiving is active for the objects you need to track changes for and your changes are scattered through time, but for your problem it is better to approach the log data directly.
1. First select the main change documents from CDHDR table for a given "OBJECTCLAS" and "OBJECTID". Here you can use additional filtering on DATE (field UDATE) and TIME (field (UTIME). Even filtering on a specific transaction is possible (field TCODE).
This gives you a number of change documents (field CHANGENR).
2a. Secondly select the specific field changes from table CDPOS by using the found fields from CDHDR and additionally fill TABNAME with the specific table and if required FNAME with the specific field name. 2b. Since in your case the values will not be known, you need to track changes, you have to be very carefull in your selections. If you track the object MATERIAL or MATERIAL_N, you best loop over the MARA table and for each MATNR fill the OBJECTID field of CDHDR with this MATNR value.
3. In order to find NEWLY created items you need to check the CHANGE_IND flag. When 'I' it is an new insert, when 'U' it is an update. Now this rule applies ONLY to key fields, since SAP first creates the key record (CHANGE_IND = 'I') and then the other fields (CHANGE_IND = 'U').
Finally the warning given by Andreas (runtime increases - you MUST select with OBJECTCLAS and OBJECTID) is very important. Not supplying OBJECTID will have a very heavy impact on the runtime.
Hope this gives you some clues on how to approach your problem.
Regards,
Rob. -
Re: Whence should come the frameworks?
At 03:44 PM 6/20/98 +0200, Daniel Nguyen wrote (on the polymorphic
polymorphism thread:
Is it a battle between Forte and Sage ?One hopes not, but this reminds me of an interesting question that I would
like to throw out for comment. With any product like Forte, any given
release can only cover so much. Some of what it does not include is core
infrastructure and for that one has simply to work around or wait. But,
there is also a lot which it does not cover which is within the scope of
others to provide. This is particularly apparent in the case of Express
and Conductor where one can clearly extend that which comes from Forte or,
to be more extreme, one can offer an alternative, especially in the case of
Express.
These extensions and alternatives are really a necessary part of getting
work done, but for those with a mind to it, they also present a business
opportunity, either for direct sale to other Forte shops or as a part of
the value-add in a consulting agreement. But, as one moves on to
subsequent releases, there is a natural tension which arises because Forte
is likely to incorporate some of these same extensions into the product.
E.g., various frameworks have provided security components, but R4 will
have its own security component. Forte is also likely to provide
extensions to Express which are not already in a competing framework and
users of that framework will then not benefit automatically by that
extension unless the framework provider works to include the extension as
well.
My impression, correct or not, is that most framework providers are
offering their products as alternatives to Express and, as such, are
essentially competing with future versions of Express. I.e., in the
current release, one can argue that the competing framework is a better
foundation, but if future versions of Express make substantial strides, as
seems to be the expectation, then the providers of that framework have the
difficult task of making equal or greater strides in order for it to
continue to be the case that their offering is still arguably better.
At least one company, DS Data, has taken the alternate position of layering
their products on Express and Conductor. This would seem to put their
users in a somewhat better growth position since future extensions to
Express should be fairly easily incorporated, either by replacing the
previously external component or simply by being added to what is
available. One might argue that this graceful growth potential has been
achieved at the compromise of having to accept the Express and Conductor
foundations as given, but the importance of this is something we each will
have to judge for ourselves. But, even DS Data has the risk that Express
and/or will advance so rapidly as to take over all of the added features
and functionality now provided by their extensions. Their customers should
be OK since this will simply that the extensions are subsumed into the
core, but it does mean that they either lose a product in the future or
have the challenging task of continuing to stay meaningfully ahead.
It seems clear that the more that comes from Forte itself, the more the
Forte community as a whole benefits so I would hope that no one would
advocate that Forte curtail its framework development in order to leave
that market open for the partners. But, if Forte does proceed agressively
on framework development, then, to some extent, it is competing with
partners that provide frameworks. Moreover, as partners do create core
functionality like frameworks, they are creating things which would benefit
the Forte community as a whole, but they cannot expect the whole community
to purchase their framework. I.e., Company X may have some piece of their
framework which is particularly useful, but Company Y has something else
and neither are integrated with Express which one may have chosen if for no
other reason than to stay in optimal tune with what Forte is doing. As
things stand, unless these pieces can be componentialized and the companies
involved are willing to offer them as such as separate products, the only
way the Express user has of getting this functionality is to develop it
themselves or wait for Forte to add it to Express.
What I would like to ask, then, is what people think of what it is that
Forte could do to make this overall structure work better? Not that I see
it as working badly, especially compared to some other environments that I
have seen, but just that there are some real problems without obvious easy
answers.
=========================================================================
Thomas Mercer-Hursh, Ph.D email: [email protected]
Computing Integrity, Inc. sales: 510-233-9329
550 Casey Drive - Cypress Point support: 510-233-9327
Point Richmond, CA 94801-3751 fax: 510-233-6950
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Thomas,
I think you have brought up a really good question and one that deserves
some attention by all:
customers, partners and Forte. The advent of third-party tools for the
Forte marketplace is an interesting prospect. If I take my companies
product (SCAFFOLDS), the original impetus for building such a thing, was not
to offer an alternative to Forte Express, but to offer an alternative to
building applications with raw Forte. And as such, we have not targeted,
feature compared or analyzed Forte Express to help build or sell any part of
our product.
I think the reason for this is that many of us in the framework business do
not see ourselves as having a competing product to Forte Express. The
reason for this is that we have taken on applications with our products that
Forte themselves would not pitch Express at. The architectural descriptions
in SCAFFOLDS have been used to do everything from simple to very complex GUI
development to Database persistence or communications to satellites.
Because of this, there is some overlap of functionality, but certainly we
see Forte Express being used for a much more limited class of application.
I would question the assertion that it is good for Forte to build more. I
think Forte, like any company, has a limited amount of engineering muscle.
With this muscle they should be concentrating on their core products that
make the company profitable. If I look at their product line-up, clearly
the Forte Development Tool is the make or break product. They should rely
more on the marketplace to provide solutions for things that are outside of
their core products. I sort of take the opposite tact. It seems clear that
the more a third party marketplace finds outlets for their solutions the
more diverse solutions we are likely find in that marketplace. As an
example, if you look at the Visual Basic marketplace, clearly it is big with
many, many solutions because Microsoft defined some specs for add in
components and let the marketplace provide solutions.
I think Forte could spend more time opening up their tool for additions by
third-party vendors. For example, things like object introspection, an open
repository and dynamically adding widget types would do wonders for the
number and kinds of solutions that would exist in the Forte marketplace
today if this was done a version or two ago. Instead, I think Forte spent
much of their engineering muscle on other kinds of products, like Forte
Express. Whether this strategy will pay of for them remains to be seen, but
certainly if they enter the Java world, they will have to change their
current strategy with regard to support to third-party solutions. The Java
marketplace is very diverse today and Forte will have to allow more
third-party integration to be taken seriously in that market.
Mark Perreira
Sage IT Partners.
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Thomas Mercer-Hursh,
Ph.D.
Sent: Saturday, June 20, 1998 11:19 AM
To: [email protected]
Subject: Re: Whence should come the frameworks?
At 03:44 PM 6/20/98 +0200, Daniel Nguyen wrote (on the polymorphic
polymorphism thread:
Is it a battle between Forte and Sage ?One hopes not, but this reminds me of an interesting question that I would
like to throw out for comment. With any product like Forte, any given
release can only cover so much. Some of what it does not include is core
infrastructure and for that one has simply to work around or wait. But,
there is also a lot which it does not cover which is within the scope of
others to provide. This is particularly apparent in the case of Express
and Conductor where one can clearly extend that which comes from Forte or,
to be more extreme, one can offer an alternative, especially in
the case of
Express.
These extensions and alternatives are really a necessary part of getting
work done, but for those with a mind to it, they also present a business
opportunity, either for direct sale to other Forte shops or as a part of
the value-add in a consulting agreement. But, as one moves on to
subsequent releases, there is a natural tension which arises because Forte
is likely to incorporate some of these same extensions into the product.
E.g., various frameworks have provided security components, but R4 will
have its own security component. Forte is also likely to provide
extensions to Express which are not already in a competing framework and
users of that framework will then not benefit automatically by that
extension unless the framework provider works to include the extension as
well.
My impression, correct or not, is that most framework providers are
offering their products as alternatives to Express and, as such, are
essentially competing with future versions of Express. I.e., in the
current release, one can argue that the competing framework is a better
foundation, but if future versions of Express make substantial strides, as
seems to be the expectation, then the providers of that framework have the
difficult task of making equal or greater strides in order for it to
continue to be the case that their offering is still arguably better.
At least one company, DS Data, has taken the alternate position
of layering
their products on Express and Conductor. This would seem to put their
users in a somewhat better growth position since future extensions to
Express should be fairly easily incorporated, either by replacing the
previously external component or simply by being added to what is
available. One might argue that this graceful growth potential has been
achieved at the compromise of having to accept the Express and Conductor
foundations as given, but the importance of this is something we each will
have to judge for ourselves. But, even DS Data has the risk that Express
and/or will advance so rapidly as to take over all of the added features
and functionality now provided by their extensions. Their
customers should
be OK since this will simply that the extensions are subsumed into the
core, but it does mean that they either lose a product in the future or
have the challenging task of continuing to stay meaningfully ahead.
It seems clear that the more that comes from Forte itself, the more the
Forte community as a whole benefits so I would hope that no one would
advocate that Forte curtail its framework development in order to leave
that market open for the partners. But, if Forte does proceed agressively
on framework development, then, to some extent, it is competing with
partners that provide frameworks. Moreover, as partners do create core
functionality like frameworks, they are creating things which
would benefit
the Forte community as a whole, but they cannot expect the whole community
to purchase their framework. I.e., Company X may have some piece of their
framework which is particularly useful, but Company Y has something else
and neither are integrated with Express which one may have chosen
if for no
other reason than to stay in optimal tune with what Forte is doing. As
things stand, unless these pieces can be componentialized and the
companies
involved are willing to offer them as such as separate products, the only
way the Express user has of getting this functionality is to develop it
themselves or wait for Forte to add it to Express.
What I would like to ask, then, is what people think of what it is that
Forte could do to make this overall structure work better? Not that I see
it as working badly, especially compared to some other environments that I
have seen, but just that there are some real problems without obvious easy
answers.
=========================================================================
Thomas Mercer-Hursh, Ph.D email: [email protected]
Computing Integrity, Inc. sales: 510-233-9329
550 Casey Drive - Cypress Point support: 510-233-9327
Point Richmond, CA 94801-3751 fax: 510-233-6950
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
INR should come on the top , not in every row...
Dear Experts,
I am facing an onother issue. The issue seems very simple but a m nt able to solve it.
In service report ,
Net Income
540,000.00 INR
243,000.00 INR
But in Sales Report,
Net Sales
INR
3,718,710.31
16,057,490.72
In above service report the data should come like the Sales Report. I am able to change it only for my system, but i am not able to do it Globally.
In the report , Net Income --> Right click --> properties --> Display --> Display scaling factors for key figures..
In such a way I am getting the value like ,
Net Income
INR
540,000.00
243,000.00
But the problem is , its not applicable for the global users.
Please put some light .
Thanks,
SanjanaHi Chandu,
If I change in the following way :
In the report , Net Income --> Right click --> properties --> Display --> Display scaling factors for key figures..
For that time I am able to see the report like
Net Income
INR
540,000.00
243,000.00
But If I start after putting transaction RRMX , then its showing like ,
Net Income
540,000.00 INR
243,000.00 INR
This means its not getting stored . What should I do ?
Please put some light .
Thanks,
Sanjana -
MB5T background schedule ouput in alv format
Hi all,
Please help me to get MB5T report ouput of background schedule in ALV.
I have put that report in bacground scheduling & the output of the same in BEST format but my client want the output in AlV format.
Please suggest.
Regards,
AnantOutput of MB5T can't be in ALV format in background. In foreground also this is done in two steps., In first system display in BEST format..this can be changed to ALV manually in second step.
-
ABAP Custom Report (ALV Format) in Background Processing
Hi
I am not the hardcore ABAP Person. But want to know about the detail fact of the ABAP Custome Reports. The question is can we do the background processing for the ABAP Custome Report in ALV Format.
If Yes ..do we require to have any additional Function/code to get the spool in ALV Format. I saw the comments that the output will look like the mess.
Please share your comment or any useful documenation on this. We are in ECC 6.0
Thanks in advance..and yes it will be rewared by points.
NavinYou can use alv's in background using docking containers, but the display wont be interactive. If you search the forum you will see tons of threads which talk about running ALV's in background.
For the output to be interactive, you can run the report in foreground and do the data processing in background.
Refer this link:
Displaying ALV Grid in Background Job -
In Table Maintaince G/L Text should come by default with G/L Acc.--Ple
Hi Guruu2019s
I created Ztable with 3 fields G/L Acc, G/L Acc text and another Zfield.
I created a TABLE MAINTAINCE for this. Here we need, after entering the G/L A/C in table maintaince-- G/L Text should come by default. Please suggest a way do these.Hi,
You need to write the code in the EVENTS. these are avilable in the table maintanence. you can use event 05(create), here give the Perform name and click on the code button there you can write the logic to bring the short text and move that text to your Ztable field.
look at the link to create the events --> /people/sudheer.junnuthula2/blog/2007/07/31/events-in-table-maintenance-generator
Thanks
Sudheer -
Payment Terms should come from vendor master data
When we create a new contract (ME31K) Z0NQ for the vendor XYZ by default the payment terms that the contract retrieve is 1131, but in master data (XK03) for vendor XYZ I have payment terms 1011 defined.
I already checked it in Purchase organization and CCode level.
Please advise. Thanks!It should come from vendor master only butmake sure that you are creating cintract based onthe RFQ or some use exit is avtive for that.
-
Vendor debit balance should come in sundry debtor balance
Hi, Gurus
My problem is that my client wants that if a vendor has debit balance than it should be treated as sundry debtor (Current Asset) and balance should come in sundry debtor reco. GL, similarly if a Customer has credit balance than it should be treated as sundry creditor (Current liability) and it should come in to sundry creditor balance.SAP provides overall debit/credit balance of Reco. Gl, my requirement is per vendor/customer wise i,e if Mr. X is a vendor and he has credit balance of say Rs.1000/- than its ok but another vendor say Mr. Y has debit balance of Rs. 7000/- than it should come in sundry debtor GL, what SAP is doing it will show debit balance in sundry creditor Reco. GL.
Please help me and provide appropriate solution.
Thanks & Regards
AnurajHi ,
you need to perform closing operations for Accounts Recievable /Payable to achieve your client requirement.
Please read below SAP help.
Customers in Credit and Vendors in Debit
A credit balance on a customer account should be displayed as a payable; conversely, a debit balance on a vendor account should be displayed as a receivable. If such a situation arises, the program makes the appropriate adjustment postings automatically.
To do this, the system determines the total for each account and reconciliation account. This guarantees that special G/L transactions, for example down payments and bills of exchange are displayed separately from the payables and receivables. Accounts with the same consolidation company ID are considered together.
The receivables account in the figure above identifies a credit balance of $2000 for Customer 3. This payable is to be displayed in the balance sheet under the item "Other payables". You therefore transfer the amount to the account of that name. The receivables account is adjusted by a posting to the adjustment account.
Prerequisites
Since you cannot post to the reconciliation accounts directly, the system makes adjustment postings for you. You should display the reconciliation account and the adjustment account under the same balance sheet item. The system posts the offsetting entry to a G/L account, under which the payable (or receivable) is now displayed in the balance sheet. You must have defined the account numbers for the adjustment accounts and the accounts for the offsetting entries in the system already. The posting keys are already defined in the standard system.
To define the account numbers, select the activity Define adjustment acts for reclassifying payabl./receivables in the Accounts Receivable and Accounts Payable Implementation Guide.
Regards,
Lakshmu -
The uploaded file .xml is invalid. The file should be in XSD format.
hi ,
when i am trying to upload a data definition file .ie salesinvoice.xml through oracle XML Publisher , i get the error message "The uploaded file salesinvoice.xml is invalid. The file should be in XSD format."
i tried attaching other xml files also and i get the same error message. don't know how to fix this . the rtf files i can attach without and problem.
thanks in advance
manoharThis totally worked for me. Strange enough, any heads-up on whether this has been patched or not for versions 12.0 + ?
Edited by: user8961526 on Nov 22, 2010 12:24 PM -
SQL LOADER Problem when data is loaded but not come in standard formate
Hi guys,
I got problem when sql loader run data loaded successfully in table but UOM data not come in standard formate.
UOM table column contains the Unit of measure data but in my excel sheet it's look like :
EXCEl SHEET DATA:
1541GAFB07080 0 Metres
1541GAFE10040 109.6 Metres
1541GAFE10050 594.2 Metres
1541GAFE10070 126.26 Metres
1541GAFE14040 6.12 Metres
1541GAFE14050 0 Metres
1541SAFA05210 0 Metres
1541SAFA07100 0 Metres
1551EKDA05210 0 Nos
1551EKDA07100 0 Nos
1551EKDA07120 0 Nos
1551EKDA07140 0 Nos
1551EKDA07200 0 Nos.
1551EKDA08160 0 Nos.
1551EKDA08180 0 Nos.
1551EKDA08200 0 Nos.
1551EKDA10080 41 Nos.
1551EKDA10140 85 Nos.
.ctl file :
OPTIONS (silent=(header,feedback,discards))
LOAD DATA
INFILE *
APPEND
INTO TABLE XXPL_PO_REQUISITION_STG
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY'"'
TRAILING NULLCOLS
( ITEM_CODE CHAR,
ITEM_DESCRIPTION CHAR "TRIM(:ITEM_DESCRIPTION)",
QUANTITY,
UOM,
NEED_BY_DATE,
PROJECT,
TASK_NAME,
BUYER,
REQ_TYPE,
STATUS,
ORGANIZATION_CODE,
LOCATION,
SUBINVENTORY,
LINE_NO,
REQ_NUMBER,
LOADED_FLAG CONSTANT 'N',
SERIAL_NO "XXPL_PRREQ_SEQ.NEXTVAL",
CREATED_BY,
CREATION_DATE SYSDATE,
LAST_UPDATED_BY,
LAST_UPDATED_DATE,
LAST_UPDATED_LOGIN
Some output came in table like:
W541WDCA05260 0 Metres|
W541WDCA05290 3 Metres|
W541WDCA05264 4 Metres|
W541WDCA05280 8 Metres|
1551EADA04240 0 Nos|
1551EADA07100 0 Nos|
1551EKDA10080 0 Nos.|
1551EKDA10080 41 Nos.|
proble in | delimiter...how to remove it ' | ' from my table when sqlloader program runnig ...... where i can change in .ctl file or excel file....it's urgent guys olz help me ..
thanksHi,
How are you extracting the data to Excel sheet ?
Please check the format type of the column in Excel sheet for UOM.
There is no issue in the SQL loader control file, but issue is there in your source excel file. (Try using a different method to extract the data to Excel sheet.)
Regards,
Yuvaraj.C -
is there any way else to do it without useing quicktime pro....hope apple fixes this in ios 7 the video should come out in landscape regardless of the way you hold your phone or if you start in portrait and go into landscape while recording
You used the data. Verizon can not see what it was sued for. However your phone can see whats apps used the data. go to settings-data usage- there will be a place that says data usage cycle. line the dates up with your cycle. then there will be a bar graph below that extend bother white bars one all the way to the left and one all the way to the right. after those are extended below that will be a list of apps, there should be one that used over 2 gb and that will show you what app used that data in her purse
Maybe you are looking for
-
VMS Client Channel Buffering Problem
I just received my new Verizon VMS system which includes 2 client units. I hooked everything up and all was working as it should except that when watching live TV on the two client units, it will not buffer two different TV channels and allow me to
-
Audit log web service for Office 365
I am working on developing an application that will interact with the Office 365 services. I am currently able to get the files and folders of a singed-in user using the OAuth2 authentication. I am aware that we can get the audit logs and it will be
-
When downloading a paper model from Disney Experience, all seems ok but.....I download to a zip program, extract and view and select open with Adobe, which advises it can not recognise the file. The Disney program REQUIRES Adobe reader and i have pre
-
SQLJ Object Demo Oracle 8.1.6/7
Hi I tried the object demo from ORA_HOME\sqlj\demo\Objects. The result looks verry strange: $ java ObjectDemo *** SQLJ OBJECT DEMO *** Selecting person attributes. Selected person attributes: name = Wolfgang Amadeus Mozart ssn = 123456 address = Am B
-
Identical files not re-connecting
I had a disaster and have been re-connecting thumbs to referenced files. I noticed many times I would have two files that were: Identical name (even to capitalization) identical size, to the .1 of a MB identical pixel dimensions and identical date, d