Not geting BOM value in ALV
Hi all,
here i want to fetch BOM value for this i write code like below.
SELECT abudat amblnr bmatnr bmenge bbwart didnrk
INTO CORRESPONDING FIELDS OF TABLE it_rawmat
FROM ( ( mkpf as a inner join mseg as b on amblnr = bmblnr )
inner join mast as c on cmatnr = bmatnr )
inner join stpo as d on didnrk = bmatnr )
where bbwart = '261' and bwerks in werks and bmatnr in matnr and abudat in budat. "and d~idnrk in idnrk.
IF sy-subrc <> 0.
MESSAGE ' No Data For This Selection' TYPE 'I'.
SUBMIT ZPP_RAWMAT_CONSUMPTION VIA SELECTION-SCREEN.
ENDIF.
LOOP AT it_rawmat.
select single maktx
from makt
into it_rawmat-maktx
where matnr = it_rawmat-matnr.
select single matnr menge
from mseg
into (it_rawmat-matnr1, it_rawmat-menge1)
where mblnr = it_rawmat-mblnr AND bwart = '131'.
Add By Keyur chauhan to where used material discription*************
SELECT SINGLE maktx
from makt
into it_rawmat-maktx2
where matnr = it_rawmat-matnr1.
SELECT single matnr stlnr
from mast
INTO (it_rawmat-matnr3, it_rawmat-stlnr)
where matnr = it_rawmat-matnr1.
select SINGLE menge
from stpo
into it_rawmat-bomit
where idnrk = it_rawmat-matnr.
according to above code i get value of BOM filed in ALV which is previous ALV field value.
means BOM value and previous filed value both are same.
So can u please kindly help me out.
Thanks in Advance.
keyur
data is getting but alv problem
Similar Messages
-
Hi all,
here i want to fetch BOM value for this i write code like below.
SELECT a~budat a~mblnr b~matnr b~menge b~bwart d~idnrk
INTO CORRESPONDING FIELDS OF TABLE it_rawmat
FROM ( ( mkpf as a inner join mseg as b on a~mblnr = b~mblnr )
* inner join mast as c on c~matnr = b~matnr )
inner join stpo as d on d~idnrk = b~matnr )
where b~bwart = '261' and b~werks in werks and b~matnr in matnr and a~budat in budat. "and d~idnrk in idnrk.
IF sy-subrc 0.
MESSAGE ' No Data For This Selection' TYPE 'I'.
SUBMIT ZPP_RAWMAT_CONSUMPTION VIA SELECTION-SCREEN.
ENDIF.
LOOP AT it_rawmat.
select single maktx
from makt
into it_rawmat-maktx
where matnr = it_rawmat-matnr.
select single matnr menge
from mseg
into (it_rawmat-matnr1, it_rawmat-menge1)
where mblnr = it_rawmat-mblnr AND bwart = '131'.
SELECT SINGLE maktx
from makt
into it_rawmat-maktx2
where matnr = it_rawmat-matnr1.
* SELECT single matnr stlnr
* from mast
* INTO (it_rawmat-matnr3, it_rawmat-stlnr)
* where matnr = it_rawmat-matnr1.
select SINGLE menge
from stpo
into it_rawmat-bomit
where idnrk = it_rawmat-matnr.
according to above code i get value of BOM filed in ALV which is previous ALV field value.
means BOM value and previous filed value both are same.
So can u please kindly help me out.
Thanks in Advance.
keyurdata is getting but ALV problem
-
Field value is not coming in my customize ALV report
Hi All,
Good day.
I have added two fields in a customized ALV report. But the customized report was not developed by me. Therefore I am unable to understand the whole report. As per my requirement I have added 2 fields more like* quantity* & unit field in that ALV. But not understanding why values are not coming in my report though values are there in DB. Plz help me regarding this. The portion of the code is given below.
SORT t_ekbe by belnr.
loop at t_ekbe INTO w_ekbe where vgabe = '1'.
on CHANGE OF w_ekbe-belnr.
SELECT MBLNR
BWART
SMBLN
ERFMG " This is the new added field
erfme " This is the new added field
INTO CORRESPONDING FIELDS OF TABLE t_mseg
from mseg
where mblnr = t_ekbe-belnr
AND bwart = '101'.
endon.
ENDLOOP.
Thanks,
Tripod.hi ,
Do according to this
SORT t_ekbe by belnr.
if t_ekbe[] is not initial .
SELECT MBLNR
BWART
SMBLN
ERFMG " This is the new added field
erfme " This is the new added field
INTO CORRESPONDING FIELDS OF TABLE t_mseg
for all entries in t_ekbe
from mseg
where mblnr = t_ekbe-belnr
AND bwart = '101'.
endif.
after this
loop at t_ekbe .
loop at t_mseg where mblnr = t_ekbe-belnr .
t_ekbe-ERFMG = t_mseg-ERFMG .
t_ekbe-erfme = t_mseg-erfme .
modify t_ekbe transporting ERFMG erfme .
clear t_mseg .
endloop.
clear t_ekbe .
endloop.
Regards
Deepak . -
In ALV- Save layout is not holding sorting values..
hello expert.
in ALV-> Change Layout -> filter Material -> 89* and save as default.
but not working when i execute the 2nd time from starting onwards..!
my alv is able to save screen but not filtering values .
my alv unable to hold filter value as default setting.
could you please help me out.
thank you,
with best regards
srinivas rathodHi
Save personalization is for saving variables not for saving layout. If you are doing any changes to layout you can directly save by clicking save button.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/6f6b52f5981c91e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/01/42c73c13b0ce5be10000000a114084/frameset.htm
Regards
Ravi
Edited by: Ravi Naalla on Apr 3, 2009 3:47 AM
Edited by: Ravi Naalla on Apr 3, 2009 3:49 AM -
Get checkbox values from alv grid
Hi,
I'm using the function REUSE_ALV_GRID_DISPLAY and I'm showing a table with a field like a checkbox.
In USER_COMMAND FORM to get selected values do as follow:
CALL METHOD REF_GRID->CHECK_CHANGED_DATA.
And then:
loop at i_pos (my table) with checkbox eq 'X'.
endloop.
The first time I execute the ALV every thing is OK but if I do any action (I use the function 'BAPI_GOODSMVT_CREATE' ...), I refresh the data and I raise the alv again. In USER COMMAND FORM the code is the same and I can not get checkbox values.
Can someone help me please?
Thanks and regards.Hi,
Check this
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = pt_grpfcat[]
it_excluding = p_grpexcltab2[]
is_layout = pt_grplayout2
i_callback_program = sy-repid
i_callback_html_top_of_page = p_header
i_callback_pf_status_set = v_status_set1
i_callback_user_command = f_user_command1
i_screen_start_column = 25
i_screen_start_line = 5
i_screen_end_column = 80
i_screen_end_line = 20
it_events = i_events[]
tables
t_outtab = i_grpoutput.
form f_user_command1 using p_ucomm type sy-ucomm
rs_selfield type slis_selfield.
data p_ref1 type ref to cl_gui_alv_grid.
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = p_ref1.
call method p_ref1->check_changed_data.
case p_ucomm.
when 'YCNC'.
leave to screen 0.
endcase.
rs_selfield-refresh = c_x. " Grid refresh < You need to fill up this
endform. " F_user_command1
aRs -
GENPC in ESTOH table not geting updated while creating report.
Hi Guys,
I am trying to create a report but once the report is created it is going to generation running status.
I checked table ESTOH where all the item comes once areport is created. There is a field called GENPC in ESTOH table which logically should get filled with the Generation server automaticallly.
The issue is that field is not geting updated with server value.
But if i edit the table and fill the field GENPC with server name , it is then getting prcessed correctly and report is getiing generated.
My question is why GENPC in table ESTOH is not getting updated automatically when a report is created.
Regards,
AnoopHello Anoop,
could you please indicate which release you are using (ECC 6.0 with or without activated Enh.PAck 3).
Are the WWI Work Processes running as scheduled (work processes ?); is the dispatcher running normally ?
Have you checked transaction CG5Z ? Here you should see immediately which generation server should generate the WWI document.
Normally it is like you have explained. You generate a report (from g02) and in the background the dispatcher dispatches this to a WWI work process which takes over the further activities. Then the data is collected and passed on to the WWI server. THen the report is build and the WWI document is passed back to SAP R/3. Im an not sure at which point of time the WWI document get the "unique id" in DMS (what means is the number generated before the WWI is asked to generate something or is it generated if the document has been passed bacK.
Do you have the problem always with the same generation server? Is this always the same specification and generation variant language combination?
During the process the normal status net is used. If you check Cg50 you should be able to control the progress of generation.
The normal status net is like this:
SW => RR => GP => GS => CO => RE => HI (refer to http://help.sap.com/erp2005_ehp_04/helpdata/en/a7/288aa30a6c11d28a220000e829fbbd/frameset.htm
Example of a Status Network for Reports )
If you have the status "generation possible" and nothing is happening any more in most case there is some trouble with SAP => RFC => WWI destination.
Therefore check in additiion WWI version, RFC connections etc.
With best regards
C.B.
Edited by: Christoph Bergemann on Jul 22, 2010 8:30 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:39 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:45 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:45 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:46 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:46 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:47 PM
Edited by: Christoph Bergemann on Jul 22, 2010 8:48 PM -
How to merge rows with similar values in alv grid display in webdynpro
Hi experts,
i want to know about how to merge rows with similar values in alv grid display of webdynpro.grouping rows is possible in table display in webdynpro but i am not able to do row grouping in the alv grid display in webdynpro.
kindly suggest.
thanks ,
Anita.Hi Anita,
did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
Is there an ALV function similar to the TABLE Row grouping?
Thanx in advanced!!!
Kind Regards,
Gerardo J -
How to change sub total value in ALV Grid.
Hi All,
Can u please explain how to change SUBTOTAL Value in ALV Grid display based on another field value.
EX; F1 subtotal is initial then we have to modify the F2 sub total to 9999.9.
Thanks
Radha.Hi Radha,
I doubt if that can be changed....because the event that i was referring to in my previous post works with ALV List display...But in any case you can try that.....
There is an event in SLIS....(As i told you, i dont remember the name and currently i dont have access to SAP system, so i am not able to verify and let you know that event name).....
Other thatn TOP and END of PAGE events, there is an event for sub-total text......i think it would start with "SUBTOTAL"...
you need to use that event in your events table and pass it to ALV Grid display.
Then create a sub-routine with that name (As you do for TOP-OF-PAGE event)....and in this event you can change the values in runtime (PROVIDED, this event gets triggered for ALV GRID).....
If this does not work, i think calculating sub-totals while you build the internal table would be a better option....(If you have time constraint....else you can do some more research on the same)........
Best Regards,
Ram. -
Problem with aligning values in ALV header???????
I am supposed to show some values in ALV header some thing like this
PGMID: xxxxx
Material: p_Matnr-low to p_Matnr high
Plant: p_werks-low to p_werks-high
ALV Reoport
For this i wrote code something like this.
Fieldcatalog-status='s'.
Fieldcatalog-key = 'PGMID:'.
FieldCatalog-info = 'xxxxxxxx'
append field catlalog.
Fieldcatalog-status='s'.
Fieldcatalog-key = 'Material:'.
Concatenate p_Matnr-low
'to'
p_Matnr-high into FieldCatalog-info.
append field catlalog.
etc................
Now output shown is like this
PGMID: xxxxx
Material: p_Matnr-low to p_Matnr high
Plant: p_werks-low to p_werks-high
I am not able to give a good gap in between the 'to' as shown initially. Any idea on this??
RakeshHi,
Please find attached below code :
IF NOT so_bukrs-low IS INITIAL AND NOT so_bukrs-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Company Code'(015).
CONCATENATE so_bukrs-low 'to' so_bukrs-high INTO gs_line-info
SEPARATED BY space.
APPEND gs_line TO lt_top_of_page.
ELSEIF so_bukrs-low IS INITIAL AND so_bukrs-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Company Code'(015).
gs_line-info = 'ALL Values'(012).
APPEND gs_line TO lt_top_of_page.
ELSEIF so_bukrs-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Company Code'(015).
gs_line-info = so_bukrs-low.
APPEND gs_line TO lt_top_of_page.
ENDIF.
*Fiscal Year
CLEAR gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Year'(014).
MOVE sp_gjahr TO gs_line-info.
APPEND gs_line TO lt_top_of_page.
*Period
CLEAR gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Period'(013).
MOVE sp_monat TO gs_line-info.
APPEND gs_line TO lt_top_of_page.
*Currency Key
IF NOT so_waers-low IS INITIAL AND NOT so_waers-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Currency'(011).
CONCATENATE so_waers-low 'to' so_waers-high INTO gs_line-info
SEPARATED BY space.
APPEND gs_line TO lt_top_of_page.
ELSEIF so_waers-low IS INITIAL AND so_waers-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Currency'(011).
gs_line-info = 'ALL Values'(012).
APPEND gs_line TO lt_top_of_page.
ELSEIF so_waers-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Currency'(011).
gs_line-info = so_waers-low.
APPEND gs_line TO lt_top_of_page.
ENDIF.
*Clearing Doc
IF NOT so_augbl-low IS INITIAL AND NOT so_augbl-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Clearing Doc'(020).
CONCATENATE so_augbl-low 'to' so_augbl-high INTO gs_line-info
SEPARATED BY space.
APPEND gs_line TO lt_top_of_page.
ELSEIF so_augbl-low IS INITIAL AND so_augbl-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Clearing Doc'(020).
gs_line-info = 'ALL Values'(012).
APPEND gs_line TO lt_top_of_page.
ELSEIF so_augbl-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'Clearing Doc'(020).
gs_line-info = so_augbl-low.
APPEND gs_line TO lt_top_of_page.
ENDIF.
*User ID
IF NOT so_usrid-low IS INITIAL AND NOT so_usrid-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'User ID'(021).
CONCATENATE so_usrid-low 'to' so_usrid-high INTO gs_line-info
SEPARATED BY space.
APPEND gs_line TO lt_top_of_page.
ELSEIF so_usrid-low IS INITIAL AND so_usrid-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'User ID'(021).
gs_line-info = 'ALL Values'(012).
APPEND gs_line TO lt_top_of_page.
ELSEIF so_usrid-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'User ID'(021).
gs_line-info = so_usrid-low.
APPEND gs_line TO lt_top_of_page.
ENDIF.
*GL Account
IF NOT so_hkont-low IS INITIAL AND NOT so_hkont-high IS INITIAL.
SHIFT so_hkont-low LEFT DELETING LEADING '0'.
SHIFT so_hkont-high LEFT DELETING LEADING '0'.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'GL Account'(004).
CONCATENATE so_hkont-low 'to' so_hkont-high INTO gs_line-info
SEPARATED BY space.
APPEND gs_line TO lt_top_of_page.
ELSEIF so_hkont-low IS INITIAL AND so_hkont-high IS INITIAL.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'GL Account'(004).
gs_line-info = 'ALL Values'(012).
APPEND gs_line TO lt_top_of_page.
ELSEIF so_hkont-high IS INITIAL.
SHIFT so_hkont-low LEFT DELETING LEADING '0'.
CLEAR: gs_line.
gs_line-typ = gc_s.
gs_line-key = 'GL Account'(004).
gs_line-info = so_hkont-low.
APPEND gs_line TO lt_top_of_page.
ENDIF.
Thanks,
Sriram Ponna. -
How to calculate subtol and total values in alv.
Hi expert,
I want to calculate the subtol and total values in alv as follows,
example:
month: Jan Fer Mar Apr
-50 -30 40 -10
-20 -13 -12 -10
subtotal -70 -43 28 -20
-10 -10 -10 -10
-10 -31 -15 -10
subtotal -20 -41 -25 -20
total -90 -84 3 -40
when i put '-' in front of the month,i define the month type c,
and when the type is c,it cann't calculate the subtotals and totals.
how can i do can make the layout like the example.
thanks...
Edited by: Heum Kim on Aug 25, 2008 3:54 AMThe below code is not generic one. I am just looking for generic one. You try to fix it using the similiar approach.
REPORT ZTEST_ALV_DEC.
data: fcat type lvc_s_fcat,
tfcat type lvc_t_fcat.
data: begin of itab occurs 0,
carrid(10),
quan type DEC_16_02_S,
end of itab.
itab-carrid = 'AA'.
itab-quan = '-10000.00'.
append itab.
fcat-fieldname = 'QUAN'.
fcat-tabname = 'ITAB'.
fcat-decimals_o = 2.
fcat-edit_mask = 'V__,___.__'. "This is not generic
append fcat to tfcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
IT_FIELDCAT_LVC = tfcat
TABLES
t_outtab = itab
EXCEPTIONS
PROGRAM_ERROR = 1 -
Rows not updating table in OOPs alv
Hi All,
Hope all are doing fine!!!
I have a created an alv report in OOPS ,,,when for the first time i change/edit the rows and press save ,,the records/rows are updating in db table ,.BUT next time if i change/edit the rows and press save button again its not updating the rows..
am using object of type cl_alv_changed_data_protocol to get the changed data ,,,,its working fine for the first time but next time its empty its not having any value for changed data.
pls kindly let me know how to fix it..
Thanks
JackHi JAck,
As soon as you hit the save button, in debug see if the work area has the changed data, to make sure that it is not getting cleared, once that is done, you can check step by step where the data is getting lost...
Thanks,
Srini. -
I am not geting all the records in TCRT for a perticular sequnce number ?
Hi All,
I not geting all the recotrds in TCRT table what ever the records i can see in transaction : PC_PARESULT for a perticular employee of perticular sequence neumber.
My code is like this : for the cumyr = '2008' i am geting values but cumyr = '2007' i am not geting values . But actually records exist for that condition as i see through PA_PCRESULT.
cd-key-pernr = pernr-pernr.
rp-imp-c2-cu.
SORT rgdir BY paydt DESCENDING.
LOOP AT rgdir.
CHECK: rgdir-paydt BETWEEN p_detryr_low AND
p_detryr_high,
rx-key-pernr = cd-key-pernr.
UNPACK rgdir-seqnr TO rx-key-seqno.
rp-imp-c2-ru.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
LOOP AT tcrt WHERE lgart = '/303' AND
ctype = 'Y' AND
taxau = 'FED' AND
cumyr = '2008'.
v_betrg 1= v_betrg + tcrt-betrg.
ENDLOOP.
LOOP AT tcrt WHERE lgart = '/303' AND
ctype = 'Y' AND
taxau = 'FED' AND
cumyr = '2007'.
v_betrg 2 = v_betrg + tcrt-betrg.
ENDLOOP.
Thanks ,
Suresh.You may not expressly be using all the RAM in your machine but OS X will, whether you know it or not.
Each time you read a file from disk, whatever was read is cached by the system; when the file or program is no longer in use, the memory is marked free for the system to recover for other purposes but as long as it remains in memory the next time you need to access that disk information it's simply read from memory.
The more RAM, the more disk data is kept around and the faster your machine will operate until that memory needs to be recovered or you reboot (or otherwise flush the disk cache.) -
Total is not getting displayed in the ALV output.
Hi,
Total is not getting displayed in the ALV output.
I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
Are there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
source code:
DATA: layout TYPE slis_layout_alv,
IT_eventS TYPE slis_t_event,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
TYPES: BEGIN OF ty_tab,
belnr TYPE dberchz-belnr,
belzart TYPE dberchz-belzart,
net TYPE dberchz-nettobtr,
END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
SELECT belnr belzart nettobtr
FROM dberchz
INTO TABLE lt_tab[]
WHERE belnr eq '000000000001'.
if sy-subrc ne 0.
ENDIF.
* defining layout
layout-colwidth_optimize = 'X'.
layout-def_status = 'X'.
*defning event
*event
*defining field catalog
fcat-col_pos = 1.
fcat-fieldname = 'BELNR'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 2.
fcat-fieldname = 'BELZART'.
fcat-tabname = 'LT_TAB'.
APPEND fcat.
fcat-col_pos = 3.
fcat-fieldname = 'NET'.
fcat-tabname = 'LT_TAB'.
fcat-do_sum = 'X'.
APPEND fcat.
*calling alv
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = 'YZ_PLR'
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* IT_EXCLUDING =
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = layout
it_fieldcat = fcat[]
i_tabname = 'LT_TAB'
it_events = IT_EVENTS[]
* IT_SORT =
* I_TEXT = ' '
tables
t_outtab = lt_tab[]
* EXCEPTIONS
* PROGRAM_ERROR = 1
* MAXIMUM_OF_APPENDS_REACHED = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
Thanks,
GauravHi
No I don't think, this is my code (based on your code) and it works fine:
TYPE-POOLS SLIS.
DATA: BEGIN OF LT_TAB OCCURS 0,
BELNR LIKE BSEG-BELNR,
GJAHR LIKE BSEG-GJAHR,
WRBTR LIKE BSEG-WRBTR,
WAERS LIKE BKPF-WAERS,
END OF LT_TAB.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
IT_EVENTS TYPE SLIS_T_EVENT,
FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
REC_FCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
START-OF-SELECTION.
FCAT-COL_POS = 1.
FCAT-FIELDNAME = 'BELNR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'BELNR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 2.
FCAT-FIELDNAME = 'GJAHR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'GJAHR'.
FCAT-REF_TABNAME = 'BSEG'.
APPEND FCAT.
FCAT-COL_POS = 3.
FCAT-FIELDNAME = 'WRBTR'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-CFIELDNAME = 'WAERS'.
FCAT-REF_FIELDNAME = 'WRBTR'.
FCAT-REF_TABNAME = 'BSEG'.
FCAT-DO_SUM = 'X'.
APPEND FCAT.
FCAT-COL_POS = 4.
FCAT-FIELDNAME = 'WAERS'.
FCAT-TABNAME = 'LT_TAB'.
FCAT-REF_FIELDNAME = 'WAERS'.
FCAT-REF_TABNAME = 'BKPF'.
FCAT-DO_SUM = SPACE.
APPEND FCAT.
SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
WHERE BUKRS = 'MAAB'
AND BELNR = '0000000001'.
LT_TAB-WAERS = 'EUR'.
MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
*CALLING ALV
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT[]
I_TABNAME = 'LT_TAB'
IT_EVENTS = IT_EVENTS[]
TABLES
T_OUTTAB = LT_TAB[].
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
I've also inserted a currency field
Max -
Geting null values from request
hi!
i m producing this code through out.println() method in my page and then using java script
i am submiting this page to another page
<td width="56%"><textarea name="question_no_1"></textarea></td>
<input name="question_no_1_radio1" type="radio" value="radio"></td>
<td width="59%"> <textarea name="question_no_1_ans1"></textarea></td>
<input type="radio" name="question_no_1_radio2" value="radio"></td>
<td><textarea name="question_no_1_ans2"></textarea></td>
<input type="radio" name="question_no_1_radio3" value="radio"></td>
<td><textarea name="question_no_1_ans3"></textarea></td>
<input name="question_no_1_radio4" type="radio" value="radio"></td>
<td><textarea name="question_no_1_ans4"></textarea></td>
but when i submit it to the other page and try to retrieve value of parameter "question_no_1"
through the bellow statement it shows a null value but i have given a value previously by
typing a question in it
System.out.println("the Body Of The First Question Is "+request.getParameter("question_no_1"));
can anybody help me what is going on here.
also if i try to normaly submit first page (ie <form="form1" method="post" action="other_jsp_page.jsp"> ) then the statement in the next page gives me the correct value but
i have to submit the first paper through java script.
if u want to see full detail of my code then go to the following link
http://forum.java.sun.com/thread.jsp?thread=309254&forum=45&message=1237097
thanx in advanceOK, your problem is that you are not submmiting the values to the other page. When you do the
--> document.forms[0].submit();
in JavaScript, the form has to action defined
--> <form name="form1" method="" action="">
So, the page does nothing. The line following the submit just changes the location of the page, IT DOES NOT POST the values.
One solutions is the following:
1.- define an action for your form:
<form name="form1" method="POST" action="'save_paper.jsp">
2.- Then create a JavaScript function that validates the fields and simply return "true" if the form is correct, and false if there is a problem (just a little modification of the one you have).
3.- Then modify your submit button:
Instead of:
<input type="button" name="Save" value="Save" onClick="validateField()">
Try:
<input type="SUBMIT" value="Save" onclick="validateField();"> -
Free goods sub item not geting generated in credit memo.
Dear All,
Example;
Sales order for free goods 10+1
Delivery 10+1
Invoice 10+1
Customer has not accepted the goods by some reason.
We have ceated credit memo request 10+1
Return Delivery 10+1
Credit memo with reference to return delivery ;Only 10 qunatity are copying in the billing document.Free goods quantity is not getting copied.Please guide what could be the reason.
Sap std says credit memo should be reference to credit memo request bu out client requrement is ,it should be on return delivery based.we have done all settings but free goods qty is not geting copied.
Regards,
deeptiHi
KIndly check the copy control configuration in the VTFL
Target Bill. Type RE From Delivery Type LR
Credit for Returns Returns Delivery
Copying requirements 003 Header/dlv.-related
Determ.export data
Allocation number
Reference number
Copy item number
Copying requirements 004 Deliv-related item Billing quantity B
Data VBRK/VBRP 000 Pos./neg. quantity +
Pricing type G
PricingExchRate type
Cumulate cost
Price source
REgards
Damu
Maybe you are looking for
-
Hai All, I regularly take hot backup via a script. In script copy all datafiles and archivelogs to the backup destination. One conrolfile is created using 'alter database backup control file to c:/backup.ctl' . Thus controlfile is also generated. I c
-
Internet Explorer issue In Windows 8.1
In IE 11 in Windows 8.1 I found below issue: 1) I found out that browser cache in Windows 8.1 is stored in "InetCache" folder which is located at C:\Users\\AppData\Local\Microsoft\Windows\INetCache. But when this folder is accessed from windows expl
-
I'm a gamer and I play in windowed mode, and every now and then this gets in my way of playing. It's super annoying and I have to either close out Firefox or move my taskbar to the top, which isn't optimal. I'd like to be able to play in windowed mod
-
Booting a MacBook from a Macbook Pro disk
Is this possible??? I have a Superduper copy of my Macbook Pro Core Duo on an extrernal HD. Can I use this HD to boot a Macbbok Core 2 Duo (not Pro)??? Or: Can i use this backup and restore to a new MacBook Core 2 Duo?? (Awoiding painfull reinstall a
-
ITunes 9.1.1 crashing, continuously. OS 10.5.8
Ever since my update to iTunes 9.1.1, it's been crashing. I thought I had it narrowed down to only when the iPhone or iPod were attached, but no...it does it on it's own now. It's getting very frustrating. I've heard that maybe removing iTunes and re