Using write statement
Hi,
I need help ,my problem is
i am taking 2 inputs(co-ordinates in the screen) from the user like (5,10) and (10,20)
and now i want to draw a straight line between these two co-ordinates.
HI
PLEASE GO THROUGH THE LINKS
<a href="http://72.14.203.104/search?q=cache:Hjt7oMkDiecJ:help.sap.com/saphelp_nw04/helpdata/en/9f/db9e5735c111d1829f0000e829fbfe/content.htmDRAWALINEIN+ABAP&hl=en&gl=in&ct=clnk&cd=2">Blank Lines and Drawing Lines</a>
<a href="http://cma.zdnet.com/book/abap/ch15/ch15.htm#DisplayingtheAvailableSymbolsIconsandlinedrawCharacters">Line-draw Characters</a>
IF THIS FINDS USEFUL PLEASE REWARD POINTS
REGARDS
ANOOP
Similar Messages
-
Using WRITE statement to get --- Page : 1 of 10
I rcv some answer yesterday about the page no,
Re: Using WRITE statement to get --- Page : 1 of 10
but actually I wanted to write the page no on top-of page in a ALV report....
how can i achieve that, that anyone with more concrete answer..more examples....
Thanks..Hi,
Did you check this:
printing page numbers in report
Eddy -
How to use Write statement along with ALV output
Hi expert,
currently i have a requirement where i am first displaying message with write statement and after that ALV should be displayed ...something like below:
vendor number is wrong.
material number is wrong.
plant is wrong.
and then here ALV output -list of records updated in the database.
but as of now the ALV is shown first and when going back then the write message information is dispayed.
can anyone help how we can get this in only one screen?
Thanks!!!
RajeshMay below example give you some idea.
TYPE-POOLS: slis.
DATA: BEGIN OF it_kna1 OCCURS 0,
kunnr TYPE kna1-kunnr,
name1 TYPE kna1-name1,
ort01 TYPE kna1-ort01,
END OF it_kna1.
DATA: it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
START-OF-SELECTION.
SELECT kunnr name1 ort01
FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.
END-OF-SELECTION.
WRITE:/ 'Write Statement Display' HOTSPOT ON.
AT LINE-SELECTION.
CLEAR it_fcat.
it_fcat-fieldname = 'KUNNR'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'Customer'.
APPEND it_fcat.
CLEAR it_fcat.
it_fcat-fieldname = 'NAME1'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'Customer Name'.
APPEND it_fcat.
CLEAR it_fcat.
it_fcat-fieldname = 'ORT01'.
it_fcat-tabname = 'IT_KNA1'.
it_fcat-seltext_l = 'City'.
APPEND it_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = it_fcat[]
TABLES
t_outtab = it_kna1[]. -
Write a statement in perticular row using "WRITE"..
Hi All,
I want to write a perticular column in a perticular row using write statement... Is it possible?
Or any alternative way is available.?
Any body can help me...
Ranjith KHi Ranjith,
1. What u are asking for is something like this :
write (5,10) 'hello'.
where 5 = row number
10 = column number.
2. But in ABAP
there is no such facility.
3. THE REASON IS :
All such write sattements,
work like PRINTER :
Just as in Printer,
We FIRST HAVE TO REACH TO THE 5TH LINE,
ONE BY ONE,
(WE CANNOT DIRECTLY PRINT ON A PARTICUALR ROW,COL)
4. Simillarly in ABAP write,
we have to FIRST REACH THAT LINE
EITHER USING WRITE,SKIP
ONLY THEN WE CAN WRITE SOMETHING.
5. WE CANNOT DIRECTLY JUMP TO THAT LINE
(SOME THING HAS TO BE PRINTED/SKIPPED/WRITTEN)
6. See below code (just copy paste in new program)
7. report abc.
write :/ 'Line 1'.
write :/ 'Line 2'.
write :/ 'Line 3'.
write : 15 '15'.
write : 30 '30'.
write :/ 'Line 4'.
write :/ 'Line 5'.
write :/ 'Line 6'.
write : 15 '15'.
write : 30 '30'.
regards,
amit m. -
To bold a Statement using Write Option
Hi,
Hi I have a simple requirement i want to bold a statement using Write Statement in a simple report.
Hope this describes the problem.
Thanks
SandipanHi,
REPORT demo_list_format_color_1.
DATA i TYPE i VALUE 0.
DATA col(15) TYPE c.
WHILE i < 8.
CASE i.
WHEN 0. col = 'COL_BACKGROUND '.
WHEN 1. col = 'COL_HEADING '.
WHEN 2. col = 'COL_NORMAL '.
WHEN 3. col = 'COL_TOTAL '.
WHEN 4. col = 'COL_KEY '.
WHEN 5. col = 'COL_POSITIVE '.
WHEN 6. col = 'COL_NEGATIVE '.
WHEN 7. col = 'COL_GROUP '.
ENDCASE.
FORMAT INTENSIFIED COLOR = i.
WRITE: /(4) i, AT 7 sy-vline,
col, sy-vline,
col INTENSIFIED OFF, sy-vline,
col INVERSE.
i = i + 1.
ENDWHILE. -
How to display output without fieldnames in write statements
hi,
can any one tell how to get output with all fields values of a table without writing fieldnames in write statement.
giv proper code for this task.Thaks in advance.hiii
if you want to write just values then you can use write statement only ..no need to do anything else.simply write as follows
LOOP AT t_customer INTO fs_customer.
WRITE:/ fs_customer-customer_no,
fs_customer-customer_name,
fs_customer-customer_amount.
ENDLOOP
reward if useful
thx
twinkal -
Hi Guys,
I have a internal table with data like below.
PALNO TKNUM
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-2 /5 |0000001144
0000001144-01-2 /5 |0000001144|
0000001144-01-3 /5 |0000001144|
I want to use write statement for displaying these values seperatly to identity palet(PALNO) wise..
when palno is same I want write statement to display as follows
PALNO TKNUM
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144|
0000001144-01-1 /5 |0000001144| For same PALNO
0000001144-01-1 /5 |0000001144|
SKIP 2 Lines.
PALNO TKNUM
0000001144-01-2 /5 |0000001144| For same PALNO
0000001144-01-2 /5 |0000001144|
SKIP 2 Lines
PALNO TKNUM
0000001144-01-3 /5 |0000001144| For same PALNO
If this possible by write statements.
Plz let me know.
Thanks,
Prasad.Data:w_tknum like itab-tknum.
Loop at itab.
If w_tknum ne Itab-knum and sy-tabix > 1.
Skip 2.
Endif.
w_tknum ne Itab-knum.
Endloop.
Regards,
Gurpreet -
Deleting line on output screen that is written by Write statement....
Hello Gurus,
In my case there is data written on output screen. When I double click on line on ABAP report execution output screen, I want that line to be deleted from output screen.
I know I will have to write the logic at line-selection but how can I delete line that is written on screen using write statement ?
Regards,
Jainam.
Edited by: Jainam Shah on Nov 12, 2009 4:47 PMHi Jainam,
When you say AT LINE-SELECTION. It is an intercative list only.
This is not possible to delete when you double click on a record.
However I have created a small code snippet for you. But to display something on the secondary list, you have to write a WRITE statement...The code as below :-
TABLES MARA.
DATA: BEGIN OF itab OCCURS 1,
MATNR like MARA-MATNR,
MEINS LIKE MARA-MEINS,
END OF itab.
SELECT MATNR MEINS FROM MARA INTO TABLE itab.
sort itab by MATNR.
LOOP AT itab.
WRITE:/ itab-MATNR.
HIDE itab-MATNR.
ENDLOOP.
AT LINE-SELECTION.
IF sy-lsind = 1.
CLEAR itab-MATNR.
write : sy-lilli.
ENDIF.
Kindly set to resolved, if this clears you question.
Regards
Abhii... -
Need to use ALV instead of write:/ statement in this perform
How can I use ALV within this perform instead of using Write:/ in it.
Scroll the program. At the bottom there is use of write:/ statement.
How to use ALV in this perform?
FORM display_logfile .
TYPES: BEGIN OF lt_openbal,
bukrs TYPE bukrs,
hkont TYPE hkont,
augdt TYPE augdt,
augbl TYPE augbl,
zuonr TYPE dzuonr,
gjahr TYPE gjahr,
belnr TYPE belnr_d,
buzei TYPE buzei,
shkzg TYPE shkzg,
dmbtr TYPE dmbtr,
END OF lt_openbal,
BEGIN OF lt_log2,
hkont TYPE hkont,
opbal TYPE dmbtr,
exp TYPE dmbtr,
cap TYPE dmbtr,
err TYPE dmbtr,
END OF lt_log2,
BEGIN OF lt_zsct_record,
kongr TYPE ckml_kongr,
hkont TYPE hkont,
zcptp TYPE zdecptp,
zerrc TYPE zdeerrc,
END OF lt_zsct_record.
DATA: lw_zscs_record TYPE t_zscs_record,
lw_zsct_record TYPE lt_zsct_record,
li_zsct_record TYPE STANDARD TABLE OF lt_zsct_record,
li_zsct_record1 TYPE STANDARD TABLE OF lt_zsct_record,
lw_log1 TYPE t_zscs_record,
li_log1 TYPE STANDARD TABLE OF t_zscs_record,
li_temp TYPE STANDARD TABLE OF t_zsct_autoinv,
li_openbal TYPE STANDARD TABLE OF lt_openbal,
li_openbal_mod TYPE STANDARD TABLE OF lt_openbal,
li_log2 TYPE STANDARD TABLE OF lt_log2,
li_log2_t TYPE STANDARD TABLE OF lt_log2,
lw_log2 TYPE lt_log2,
lw_log2_t TYPE lt_log2,
lw_openbal_mod TYPE lt_openbal,
lw_openbal TYPE lt_openbal.
i_zscs_record1 = i_zscs_record.
DELETE i_zscs_record1 WHERE zerrf NE space.
SORT i_error_bapi BY recid.
SORT i_error_bdc BY recid.
SORT i_suc_bdc BY recid.
SORT i_suc_bapi BY recid.
SORT i_zscs_record1 BY recid.
LOOP AT i_zscs_record1 INTO lw_zscs_record.
lw_log1-recid = lw_zscs_record-recid.
lw_log1-kongr = lw_zscs_record-kongr.
lw_log1-hkont = lw_zscs_record-hkont.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
input = lw_zscs_record-projk
IMPORTING
output = lw_log1-projk.
lw_log1-werks = lw_zscs_record-werks.
lw_log1-matnr = lw_zscs_record-matnr.
lw_log1-zcptp = lw_zscs_record-zcptp.
lw_log1-zerrf = lw_zscs_record-zerrf.
To Check if the KONGR value is is equal to 'E'
IF lw_zscs_record-kongr = c_e.
READ TABLE i_error_bapi INTO w_error_bapi WITH KEY recid = lw_zscs_record-recid BINARY SEARCH.
IF sy-subrc = 0.
lw_log1-zerrc = w_error_bapi-number.
lw_log1-zertx = w_error_bapi-message.
ENDIF.
ELSE.
READ TABLE i_error_bdc INTO w_error_bdc WITH KEY recid = lw_zscs_record-recid BINARY SEARCH.
IF sy-subrc = 0.
lw_log1-zerrc = w_error_bdc-number.
lw_log1-zertx = w_error_bdc-message.
ENDIF.
ENDIF.
*****To Check if the KONGR value is is equal to 'E'
IF lw_zscs_record-kongr = c_e.
READ TABLE i_suc_bapi INTO w_suc_bapi WITH KEY recid = lw_zscs_record-recid BINARY SEARCH.
IF sy-subrc = 0.
lw_log1-zerrf = c_x.
*******To check if lw_log1-zertx = w_error_bapi-message.
ENDIF.
ELSE.
READ TABLE i_suc_bdc INTO w_suc_bdc WITH KEY recid = lw_zscs_record-recid BINARY SEARCH.
IF sy-subrc = 0.
lw_log1-zerrf = c_x.
********To check if lw_log1-zertx = w_error_bdc-message.
ENDIF.
ENDIF.
APPEND lw_log1 TO li_log1.
*To clear work areas
CLEAR: lw_log1,
w_error_bapi,
w_suc_bdc,
w_suc_bapi,
w_error_bdc,
lw_zscs_record.
ENDLOOP.
IF NOT i_zscs_record1 IS INITIAL.
*To retrieve required data from the custom table ZSCT_AUTOINV
SELECT saknr
fipos
geber
saknr_off
fipos_off
FROM zsct_autoinv
INTO TABLE i_autoinv
FOR ALL ENTRIES IN i_zscs_record1
WHERE saknr = i_zscs_record1-hkont.
IF sy-subrc = 0.
SORT i_autoinv.
ENDIF.
ENDIF.
Assigning I_AUTOINV data into a local internal table for further processing
li_temp[] = i_autoinv[ ].
Sort LI_TEMP by SAKNR
SORT li_temp BY saknr.
Delete adjacent duplicates from LI_TEMP comparing SAKNR
DELETE ADJACENT DUPLICATES FROM li_temp COMPARING saknr.
Check if LI_TEMP is initial
IF NOT li_temp[] IS INITIAL.
Retrieve required data from table BSIS for all the G/L accounts
SELECT bukrs
hkont
augdt
augbl
zuonr
gjahr
belnr
buzei
shkzg
dmbtr
FROM bsis
INTO TABLE li_openbal_mod
FOR ALL ENTRIES IN li_temp
WHERE bukrs = c_wfp
AND hkont = li_temp-saknr.
IF sy-subrc = 0.
ENDIF.
ENDIF.
SORT li_openbal_mod BY hkont.
****Retrieve data from table ZSCT_RECORD for further processing for
****all entries where ZERRF is equal to space
IF p_prsall = c_x.
SELECT kongr
hkont
zcptp
zerrc
FROM zsct_record "#EC CI_NOFIRST
INTO TABLE li_zsct_record
WHERE zerrf = space.
IF sy-subrc = 0.
*****Delete records from LI_ZSCT_RECORD where HKONT value is equal to space
DELETE li_zsct_record WHERE hkont EQ space.
ENDIF.
ELSEIF p_cstcpt = c_x.
SELECT kongr
hkont
zcptp
zerrc
FROM zsct_record "#EC CI_NOFIRST
INTO TABLE li_zsct_record
WHERE zerrf = space
AND kongr NE c_e.
IF sy-subrc = 0.
******Delete records from LI_ZSCT_RECORD where HKONT value is equal to space
DELETE li_zsct_record WHERE hkont EQ space.
ENDIF.
ELSEIF p_cstexp = c_x.
SELECT kongr
hkont
zcptp
zerrc
FROM zsct_record "#EC CI_NOFIRST
INTO TABLE li_zsct_record
WHERE zerrf = space
AND kongr EQ c_e.
IF sy-subrc = 0.
******Delete records from LI_ZSCT_RECORD where HKONT value is equal to space
DELETE li_zsct_record WHERE hkont EQ space.
ENDIF.
ENDIF.
LOOP AT li_openbal_mod INTO lw_openbal.
IF lw_openbal-shkzg = c_shkzg1.
v_todmbtr = v_todmbtr + lw_openbal-dmbtr.
ELSEIF lw_openbal-shkzg = c_shkzg2.
v_todmbtr = v_todmbtr - lw_openbal-dmbtr.
ENDIF.
AT END OF hkont.
lw_log2-hkont = lw_openbal-hkont. "GL account
lw_log2-opbal = ABS( v_todmbtr ). "Open item balance
APPEND lw_log2 TO li_log2.
*log record appended with GL Account and account open item balance
CLEAR: v_todmbtr,
lw_openbal.
ENDAT .
ENDLOOP.
SORT li_log2 BY hkont.
LOOP AT li_log2 INTO lw_log2.
CLEAR v_totexppe.
CLEAR v_totcapit.
CLEAR v_toterror.
*Cost portion to be capitalised calculated
LOOP AT li_zsct_record INTO lw_zsct_record
WHERE hkont = lw_log2-hkont AND
kongr NE c_e AND zerrc IS INITIAL.
v_totcapit = v_totcapit + lw_zsct_record-zcptp. "CC calculated
ENDLOOP.
*Expensed cost portion calculated
LOOP AT li_zsct_record INTO lw_zsct_record WHERE
hkont = lw_log2-hkont AND
kongr = c_e AND zerrc IS INITIAL .
v_totexppe = v_totexppe + lw_zsct_record-zcptp. "ECP calculated
ENDLOOP.
*Errors calculated
LOOP AT li_zsct_record INTO lw_zsct_record WHERE
hkont = lw_log2-hkont AND
zerrc IS NOT INITIAL .
v_toterror = v_toterror + lw_zsct_record-zcptp. "Errors calculated
ENDLOOP.
lw_log2-exp = v_totexppe. "Expensed cost portion
lw_log2-cap = v_totcapit. "Cost capitalised
lw_log2-err = v_toterror. "Errors
*Cost portion capitalised expensed and errors in calculation are
*trans ported for related GL accont
MODIFY li_log2 FROM lw_log2
TRANSPORTING exp cap err.
ENDLOOP.
LOOP AT li_log2_t INTO lw_log2_t.
MODIFY li_log2 FROM lw_log2_t TRANSPORTING opbal WHERE hkont = lw_log2_t-hkont.
CLEAR : lw_log2_t.
ENDLOOP.
WRITE:/1(15) text-018,sy-datum. "SESSION DATE:
SKIP 2.
For printing the hear level of the output log
WRITE:/1(16) text-003, "Record ID number
20(11) text-004, "Reason Code
34(10) text-005, "GL Account
47(12) text-006, "Project Code
62(5) text-007, "Plant
70(9) text-008, "Commodity
82(25) text-009, "Cost portion To be posted
110(12) text-010, "Success Flag
125(10) text-011, "Error Code
138(50) text-012. "Error TXT
SKIP.
LOOP AT li_log1 INTO lw_log1.
WRITE:/1(16) lw_log1-recid,
20(11) lw_log1-kongr,
34(10) lw_log1-hkont,
47(12) lw_log1-projk,
62(5) lw_log1-werks,
70(9) lw_log1-matnr,
82(25) lw_log1-zcptp, "#EC UOM_IN_MES
110(12) lw_log1-zerrf,
125(10) lw_log1-zerrc,
138(80) lw_log1-zertx.
CLEAR:lw_log1.
ENDLOOP.
SKIP 2.
IF NOT li_log2 IS INITIAL.
ULINE.
WRITE:/1(16) text-013, "GL ACCOUNT CODE
20(17) text-014, "OPEN ITEM BALANCE
40(21) text-015, "EXPENSED COST PORTION
64(24) text-016, "CAPITALIZED COST PORTION
92(20) text-017. "ERRORS.
LOOP AT li_log2 INTO lw_log2.
WRITE:/1(16) lw_log2-hkont,
20(17) lw_log2-opbal,
40(21) lw_log2-exp,
64(24) lw_log2-cap,
92(20) lw_log2-err.
CLEAR:lw_log2.
ENDLOOP.
ENDIF.
ENDFORM. " DISPLAY_LOGFILEhi,
You need to use FM 'REUSE_ALV_LIST_DISPLAY' for this purpose. For using this FM, you need to create a field catlog which will contain all information about the coloumns you want to display for example their position, their text etc.
Below there is a small demo for achiving this.
TYPE-POOLS:slis.
DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
TYPES: BEGIN OF ty_itab1,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
werks LIKE vbap-werks,
lgort LIKE vbap-lgort,
END OF ty_itab1.
DATA: itab1 TYPE TABLE OF ty_itab1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM select_data.
END-OF-SELECTION.
PERFORM display.
FORM select_data .
SELECT vbeln
posnr
werks
lgort
INTO CORRESPONDING FIELDS OF TABLE itab1
FROM vbap
WHERE vbeln IN s_vbeln.
IF sy-subrc <> 0.
MESSAGE 'Enter The Valid Sales Document Number'(t04) TYPE 'I'.
EXIT.
ENDIF.
ENDFORM.
IF alv_list = 'X'.
PERFORM build_fieldcat TABLES i_fieldcat[]
USING :
*-Output-field Table Len Ref fld Ref tab Heading Col_pos
'VBELN' 'ITAB1' 10 'VBAP' 'VBELN' '' 1,
'POSNR' 'ITAB1' 6 'VBAP' 'POSNR' '' 2,
'WERKS' 'ITAB1' 4 'VBAP' 'WERKS' '' 3,
'LGORT' 'ITAB1' 4 'VBAP' 'LGORT' '' 4.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = c_pf_status
i_callback_user_command = 'USER_COMMAND '
it_events = t_alv_events[]
it_fieldcat = i_fieldcat[]
TABLES
t_outtab = itab1[]
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.
ENDIF.
FORM build_fieldcat TABLES fpt_fieldcat TYPE slis_t_fieldcat_alv
USING fp_field TYPE slis_fieldname
fp_table TYPE slis_tabname
fp_length TYPE dd03p-outputlen
fp_ref_tab TYPE dd03p-tabname
fp_ref_fld TYPE dd03p-fieldname
fp_seltext TYPE dd03p-scrtext_l
fp_col_pos TYPE sy-cucol.
*-- Local data declaration
DATA: wl_fieldcat TYPE slis_fieldcat_alv.
*-- Clear WorkArea
wl_fieldcat-fieldname = fp_field.
wl_fieldcat-tabname = fp_table.
wl_fieldcat-outputlen = fp_length.
wl_fieldcat-ref_tabname = fp_ref_tab.
wl_fieldcat-ref_fieldname = fp_ref_fld.
wl_fieldcat-seltext_l = fp_seltext.
wl_fieldcat-col_pos = fp_col_pos.
*-- Update Field Catalog Table
APPEND wl_fieldcat TO fpt_fieldcat.
ENDFORM. -
Can we write in Italic font on to the screen by using the WRITE Statement
Hello Abappers,
Can we write in Italic font on to the screen by using the WRITE Statement.
Please reply.
Regards,
RahulHi Rahul,
>Sandeep Wrote:
If you have the codepage for Italian language installed in your machine , you can write the same.
The OP is asking about italic font not about the language.
You need to upload font files ITALICI.TTF. Go to SE73 . Click on Install True type font and upload the italic file on to your system.
Check Font Attribute Italic
We already have help files on this. Refer:
[Using TrueType Fonts|http://help.sap.com/saphelp_nw70/helpdata/en/36/5b3438fd263402e10000009b38f8cf/content.htm]
I don't have idea on write statement in ABAP reports. Hope it cannot be.
Edited by: K.Manas on Dec 30, 2010 6:08 AM -
Revision: 11202
Author: [email protected]
Date: 2009-10-27 14:32:23 -0700 (Tue, 27 Oct 2009)
Log Message:
Make controlBarContent read/write so you can use other states syntax besides includeIn
QE Notes: None
Doc Notes: None
Bugs: SDK-23386
Reviewer: Corey
API Change: no
Is noteworthy for integration: No
tests: checkintests mustella/gumbo/components/Panel, Application
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-23386
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Application.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.asRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Write stat below alv report .if i use field catalog.
hi experts,
i want to use write statment after alv report.
note: i am useing fieldcatalog.
i got it if i use standard table with : end_of_list event event.
thank you.Hi snk,
1. It won't work in GRID display.
2. The reason is when grid comes,
it comes on a screen which has container and the grid control.
3. Write statement is displayed on a special screen,
which is generally used for list output.
Normal screens (where we can put textboxes/checkboxes etc),
do not support write statements.
regards,
amit m. -
Doubt in write statement at the time of using Unicode
Hi ,
here we are working in unicode ,we are facing one problem in write statement
whenever we activate the code we are getting the problem like ,"Literals that take up more than one line not permitted", but this report is working good in 4.7 but while executing in ecc6.0 ,we are facing the problem like this ,so how to solve this please let me know.
Thanks in advance,
sai krishna.It is a warning message & can be ignored.. but if you want to avoid the synatx error, you have to concateante the string ie..
old code:
data w_str type string.
w_str = 'abdcdcsdcsdcsdcdcdc
dscsdcsdcsdcsd'.
write: / w_str.
new code.
data w_str type string.
concatenate 'abdcdcsdcsdcsdcdcdc'
' dscsdcsdcsdcsd' into w_trs.
write:/ w_str.
~Suresh -
Can we use Perform statement in start routine ,Form and endform.
Hi,
Can we use Perform statement in start routine ? Then write the ABAP code between Form and Endform.
Example : Can I use Perform ABC in start routine. Then define ABC at the end of start routine.
Form ABC,
......<ABAP> code .....
Endform.Hi,
In BI 7.0 we have start routines defined using Class where you might be able to create your own performs, but in case of BW3.5 Start routines are defined using Form so there I don't think it will allow you to create one more form.
But you can surely try both the approaches.
Reards,
Durgesh. -
Is it possible to skip the screen in BDC using IF statement.
Hi Friends,
I have written a report using BDC for tcode CO11 thru recording using CALL TRANSACTION.
Case 1:
If I go to transaction CO11 (screen number 100) and give the order number which has more than 1 operations to be partially confirmed and press ENTER a pop-up screen (screen number 140) appears where in I need to select the operation number and after selecting the required operation number it automatically takes me to another screen (screen number 150).
Case 2:
If I go to transaction CO11 (screen number 100) and give the order number which has only 1 operation to be partially confirmed and press ENTER it directly takes me to screen 150 skiping screen 140.
When I enter the order number which has more than 1 operations to be partially confirmed on my selection screen, my code is working fine as needed.
But, when I enter the order number which has 1 operation to be partially confirmed on my selection screen, it is giving me error in my BDCMSGCOLL saying that the screen 140 doesn't exist.
Is there any way, Can I skip screen 140 using IF statement?
My thoughts:
1. calling screen 100.
After calling screen 100, I have put the pop-up operation numbers in an ITAB.
DESCRIBE table lines ITAB <variable>.
At NEW <order-field>.
IF <variable> = 1.
2. calling screen 140. "I need some help here to skip the screen 140
" Will this logic work?
ENDIF.
ENDAT.
3. calling screen 150.
Rest everything is working fine.
Will my above logic works correctly? I would appreciate if someone could help me with this.
Thanks in Advance.Hi,
Try something like this:
1. Call Screen 100.
Check if screen 140 needs to be called depending on your custom logic. Lets say you populate a variable as 'X' if it needs to be called.
Then write:
if valiable = 'X'.
Call screen 140.
Enter Screen 140 details.
endif.
Call screen 150.
Here the 'Call Screen' is nothing but the code you extracted after BDC recording.
Thanks.
Ravi'
Maybe you are looking for
-
Adding a check box control for each row of data in a DataModel
Hi all, I need to add a checkbox control for each row of data on a DataModel object. I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows, I need to get the selected dataModel(fragment
-
DDIC function Module to values to a Domain
Hi ABAPers, What is the DDIC function module to set values to a Domain? Thanks in advance. Regards, Ramesh.
-
On ipad received pdf documents can be reviewed and safed in ibooks. By using icloud, where can I get these documents for review on my Macbook?
-
How to create customized graphic editor
hi, i am new to java. Currently i am developing an application like a graphical editor. where i can drag and drop images,icons and also want to resize and edit it. Can any one tell me how to do it ?
-
Issues regular expression for "find all" feature
Hi, I am currently working on a website in dreamweaver that contains about 2000 pages. I know some of these pages are missing a div called id="breadcrumb". I have tried to find a way to search in the "entire current local website" for pages that do n