How to point to the next line of aninternal table
Hello experts,i am studying webdynpro abap, i am trying to point to the last line of an internal table, then add 1, in order to insert just in that position a new line by calling the function module ZFM_INSERT_CANDIDATE,neither the method INSERT_CANDIDATE nor the function module ZFM_INSERT_CANDIDATE throws any error,.
The method testing just dont do anything. what could i try? the source is the following, :
method INSERT_CANDIDATE.
data: itab TYPE ztable_type,
t_line type zperson-id_person.
data: COUNTLINES type i.
"itab = me->SELECT_CANDIDATE().T_LINE = LINES( ITAB ) + 1.
DESCRIBE TABLE ITAB LINES COUNTLINES .
COUNTLINES = COUNTLINES + 1.
itab = me->SELECT_CANDIDATE( ).T_LINE = COUNTLINES .
try.
call FUNCTION 'ZFM_INSERT_CANDIDATE'
EXPORTING
id_candidate = t_line
firstname = firstname
lastname = lastname
age = age
telephone = telephone
id_country = id_country.
ENDTRY.
endmethod.
tnkx in advanced
Hello Tashi, you are right , so i am pasting some images:
method select_cadidate:
FunctionMod ZFM_insert_candidate:
FUNCTION ZFM_INSERT_CANDIDATE.
*"*"Local Interface:
*" IMPORTING
*" VALUE(ID_CANDIDATE) TYPE ZPERSON-ID_PERSON
*" VALUE(FIRSTNAME) TYPE ZPERSON-FIRSTNAME
*" VALUE(LASTNAME) TYPE ZPERSON-LASTNAME
*" VALUE(AGE) TYPE ZPERSON-AGE
*" VALUE(TELEPHONE) TYPE ZPERSON-TELEPHONE
*" VALUE(ID_COUNTRY) TYPE ZPERSON-ID_COUNTRY
*" EXCEPTIONS
*" ZCX_EXCEPTION_T1OO_TXT
DATA wa_person TYPE Zperson.
wa_person-mandt = sy-mandt.
wa_person-id_person = id_candidate.
wa_person-firstname = firstname.
wa_person-lastname = lastname.
wa_person-age = age.
wa_person-telephone = telephone.
wa_person-id_country = id_country.
TRY.
INSERT into Zperson values wa_person.
IF sy-subrc <> 0.
"RAISE EXCEPTION TYPE ycx_exception_t100_txt
"EXPORTING textid = ycx_exception_t100_txt=>ycx_insert_no_possible.
WRITE: 'ERROR AL INSERTAR'.
ENDIF.
ENDTRY.
ENDFUNCTION.
If test the FM separately , it works:
Finally, the table:
Similar Messages
-
How do you make the inside lines in a table darker?
Hi There,
I want to make the inside lines darker. I can't figure out how to do it with this newer version. Thanks!It is not a menu, but an annotated screen grab of the box item you need to click for each selected row.
Click Format in the Toolbar. Click your table. Select the first row. In Pages v5.2.2, select the Cell tab, and then click Border to get it to expand, which shows the screen grab box that I put the red mark into so you would click there. In Pages v5.5, Apple has re-engineered the border layout in the Cell tab as shown below: -
How do you make the sentences you input in a drop down list wrap to the next line?
How do you make the sentences that you input in a drop down list to wrap to the next line?
You can't.
see this thread for more info: Can you set drop down list as multi-line??? -
How to restrict spool data in the next line in pdf print
Hi Experts,
i have spool data which is going to be print in PDF format.
if line is extented..thenit is prining the in the next line..
but that next line is not starting after one tab space.
so how to remove that space.
can anybody give me help.
Regards,
venkatHi,
output is displaying in pdf file in the give format..
ex:-
919 sub 00001 44445 testmater
ial final
here test material is not coming fully in the first line..it is cutting and displaying in 2 lines.
Regards,
venkat -
How to make code in dreamweaver flow to the next line?
The line lengths of my code are really really long. How do I make it automatically flow to the next line without causing it to actually be a new line? Just for viewing purposes. I don't like having to scroll all the way to the end of the line of code to add a close tag.
Hi
Right-click on the area next to the 'box' that has the page title, and select 'coding' to enable the coding toolbar, (appears on the l/h side of the code window) then select the word wrap icon, see image -
PZ -
When editing in iMovie the pointer doesn't jumps to the next line of clips
When editing in iMovie the pointer doesn't jumps to the next line of clips
Hi,
This should not happen.
Having said that it will happen to some extent of you Paste in a larger amount of text.
Does holding down the ALT key and hitting Enter/return a couple of times expand the window ?
This normally adds Line Breaks to the Text Field
If this does not work it will point to a windowing issue which is related to data held in com.apple.ichat.plist
Go to the Finder and it's Go Menu.
In here hold the ALT key so you can see the Home Library item and select that
Open Preferences.
Find the com.apple.iChat.plist and the associated .lockfile and drag both to the Trash.
Restart iChat.
8:15 PM Tuesday; November 22, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
In Pages it is making words slit in half instead of dropping the whole word down onto the next line. How do I change it so that the whole word goes down?
J,
In the Document Inspector, Document tab, turn off Hyphenate.
Jerry -
How to dispaly vendor name to the next line
hi all,
i have made a smartform in which i have created a TEMPLATE.I have created Three column in which in the last column of SECOND RAW i am displaying VENDOR NO and VENDOR NAME.Now my requirement is this, if the name of the vendor is too long that can not be fit in that RAW than it will automatically display to the next line of column and raw
Thanks & Regards,
sappk25thanks
-
How to keep unaltered the last line?
Hi I am doing some last corrections in a book which is going to be in the next days published and I am not allowed to change the form of the pages. (The indexes at the end of book are already done). Thus by correcting some footnotes (making them shorter) the main text above also changes (the first line of the next page appears in the page I corrected the footnotes) and I cannot keep the previous form of the pages. How can I keep the last line of the main text unaltered so that the pages turn exactly at the same point like before?
If I am understanding your issue correctly, it seems that you are trying to keep the length of each page's main content unaltered so that the index could refer back to the correct page. It sounds like the content in each page's frames are linked, so that they flow continuously. Adding a page break (or a frame break) may be what you're looking for. You'll find it under Type > Insert Break Character.
I hope this helps. And good luck with your book! -
How to append to the previous line in a text?
Hi,
Can we append a previous line in a text? That is, my program goes to the next line of text in one loop but I need to go back to the previous line and append to it in the next loop. How can I do that? Is there a way to go to a specific line or previous line ( like \n for next line)?
lakki1. Instead of thinking about "going backwards" consider delaying "going forwards". Don't write the newline character(s) until you are sure you're really done with a line.
2. Instead of writing as you go along, put the output in a List<String>, so that you can edit it. -
Continuing a string in the next line
How can a string be continued in the next line ... in the below function call for popup_title i have to give 'Enter Sold-to party's Postal code and Region'
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = 'Enter Postal code and Region'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
TABLES
FIELDS = IVALS
EXCEPTIONS
ERROR_IN_FIELDS = 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.
I appreciate your responsePlease try.....
<b>data: title_string type string.
title_string = 'Enter Sold-to party<b>''</b>s Postal code and Region'.</b>
call function 'POPUP_GET_VALUES'
exporting
* NO_VALUE_CHECK = ' '
<b>popup_title = title_string</b>
start_column = '5'
start_row = '5'
* IMPORTING
* RETURNCODE =
tables
fields = ivals
* EXCEPTIONS
* ERROR_IN_FIELDS = 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.
Regards,
Rich Heilman -
How can i see the next page in smartform?
i hav created a Second Page (%page 2) in Smart form.
and in that page i created one Main window and a table.
in 1st page, i defined the Next page as Page2 and
in the second page i defined the Next Page as Page2.
but only the 1st page is displaying. how can i see the next page?
what i want to do in smartform...Hi,
The second page will be displayed only when the data does not fit in the main window of the first page and continues to the second page.
So make sure that you have enough number of line to print that it overflows to second page.
Ajith -
The formatting of emails on my iphone 5 don't display properly yet they are correct when viewed via my laptop. Using a gmail account on my iphone/laptop. On my iphone the sentences break in unusual spots and continue on the next line. Why is this and how can I fix this issue?
Have you tried restarting or resetting your iPhone?
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
Also consider deleting and reinstalling the Mail Account in question. -
U0131nsert a Label in the next line
Hi all,
how can İ ınsert a Label (WebDynpro Element) in the next line. İt will be placed always
in the same line near an existing element. İ would like place it in the next line.
Please notice İ am inside of a TransparentContainer.
How does it work ?
Regarsds
erdemerdem,
Set layout of your TransparentContainer as MatrixLayout at design time or run time. Assign MatrixHeadData value to LayoutData property of label dynamically with this code.
IWDTransparentContainer root = (IWDTransparentContainer)view.getRootElement();
root.createLayout(IWDMatrixLayout.class)
IWDLabel lb1 = view.createElement(IWDLabel.class, "label");
lb1.setText("Up");
IWDMatrixHeadData mathead = lb1.createLayoutData(IWDMatrixHeadData.class);
root.addChild(lb1);
Hope this helps.
Vishwas. -
Moving to the next line in JTextArea
Hi,
I use a JTextArea just to display messages, that I receive from a server over the network.
However the method append only puts the text at the end of the text. I want ever message to have its own line.
So how do I skip to the next line after i appended the text?
I thought of simulating pressing the enter-key, but I didn't really figure out how to do that.
Anybody got an idea???
Thx
ChristianAppend the system's line separator usingjava.lang.System.getProperty( "line.separator" );Then the added line will be placed as you've wanted. Code will be written like below:yourTextArea.append( System.getProperty( "line.separator" ) );
yourTextArea.append( yourStringToAppend );Hope it helps.
Maybe you are looking for
-
If table testrh2 has the following columns and data col1 --> NULL col2 --> 2 and table testrh has the following columsn and data col1 --> NULL How could I write a dynamic SQL statement to join on the nulls? I've written the following block as a start
-
Officejet Pro 7780 - Unable to print or scan
I have HP Officejet Pro 7780 printer that can be connect to Netgear router by cable or wireless and by wireles to HP Pavillion laptop running Windows 7. I use to be able to print and scan using HP Solution Centre or use MS Windows drivers,however af
-
Reg : Creation of Transparent table in background
Hi Experts, Whether is it advisable to use 'CL_REBF_DDIC_TABL' to create a transparent table. I have used PUT_COMPLETE in this class to create the table, I am able to create it. This method has a import parameter 'ID_MSGLIST', I am not ge
-
IPhone 4, has timestamp been added to messages to date?
I just got an iPhone 4, has timestamp been added to messages to date?
-
Min Client configuration required to Work on SAP B1 8.8 (Patch level 10)
Dear all, In client PC's, add on not connected for some pc. this is biggest issue which iam facing. What may be minimum configuration required for SAP b1 8.8 (Patch levek 10). May be my add on creation technique wrong. can any body give some soluti