HOW CAN I SEND FIELD SYMBOL TO SUBROUTINE

Advertisement
November 30

HAI,
         HOW CAN I SEND FIELD SYMBOL TO SUBROUTINE
         HOW CAN I COME BACK FROM 5TH INTERACTIVE REROT TO 2ND
INTERACTIVE REPORT.
THANK YOU.
ASHOK

Advertisement

Replay

Hi
Write some code in the program to come to 2nd list from 5th list
if sy-lsind = 5.
   sy-lsind = 2.
endif.
for field symbols see the doc
Field Symbols
Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects.
All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
Field symbols provide greater flexibility when you address data objects:
If you want to process sections of fields, you can specify the offset and length of the field dynamically.
You can assign one field symbol to another, which allows you to address parts of fields.
Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
You can also force a field symbol to take different technical attributes from those of the field assigned to it.
The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve performance in some cases.
check the below links u will get the answers for your questions
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html
Syntax Diagram
FIELD-SYMBOLS
Basic form
FIELD-SYMBOLS <fs>.
Extras:
1. ... TYPE type
2. ... TYPE REF TO cif
3. ... TYPE REF TO DATA
4. ... TYPE LINE OF type
5. ... LIKE s
6. ... LIKE LINE OF s
7. ... TYPE tabkind
8. ... STRUCTURE s DEFAULT wa
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Cannot Use Untyped Field Symbols ad Cannot Use Field Symbols as Components of Classes.
Effect
This statement declares a symbolic field called <fs>. At runtime, you can assign a concrete field to the field symbol using ASSIGN. All operations performed with the field symbol then directly affect the field assigned to it.
You can only use one of the additions.
Example
Output aircraft type from the table SFLIGHT using a field symbol:
FIELD-SYMBOLS <PT> TYPE ANY.
DATA SFLIGHT_WA TYPE SFLIGHT.
ASSIGN SFLIGHT_WA-PLANETYPE TO <PT>.
WRITE <PT>.
Addition 1
... TYPE type
Addition 2
... TYPE REF TO cif
Addition 3
... TYPE REF TO DATA
Addition 4
... TYPE LINE OF type
Addition 5
... LIKE s
Addition 6
... LIKE LINE OF s
Addition 7
... TYPE tabkind
Effect
You can define the type of the field symbol using additions 2 to 7 (just as you can for FORM parameters (compare Defining the Type of Subroutine Parameters). When you use the ASSIGN statement, the system carries out the same type checks as for USING parameters of FORMs.
This addition is not allowed in an ABAP Objects context. See Cannot Use Obsolete Casting for FIELD SYMBOLS.
In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Defining Types Using STRUCTURE.
Effect
Assigns any (internal) field string or structure to the field symbol from the ABAP Dictionary (s). All fields of the structure can be addressed by name: <fs>-fieldname. The structured field symbol points initially to the work area wa specified after DEFAULT.
The work area wa must be at least as long as the structure s. If s contains fields of the type I or F, wa should have the structure s or at least begin in that way, since otherwise alignment problems may occur.
Example
Address components of the flight bookings table SBOOK using a field symbol:
DATA SBOOK_WA LIKE SBOOK.
FIELD-SYMBOLS <SB> STRUCTURE SBOOK
DEFAULT SBOOK_WA.
WRITE: <SB>-BOOKID, <SB>-FLDATE.
Related
ASSIGN, DATA
Additional help
Declaring Field Symbols
Reward points if useful
Regards
Anji

View 2 Replies

Can I use field symbol in AT events? How?

November 30

Hi all, I want to use field symbol in <b>AT END OF</b> event Can I use field symbol in such event as it takes table fields only. Kinldy look in to pseudo: Loop itab.          AT END OF <FS1>.          ENDAT. Endloop. I tried in my progra

View All Replies

How can I send Files in RMI

November 30

I'd like to know how can I send files from one computer to another, because I'm making a Client-Server application and I need to send files, in my program de client needs to send a file to the server and the server has to save the file in the compute

View All Replies

How can I send whatsapp messages using Siri ?

November 30

Hi, How can I send whatsapp messages using Siri ? or how can I ask Siri to read my whatsapp messages ? thanks for help!kladrian wrote: this is not the case in particular Yes it is.  If it wasn't the case, then why are you asking the question to begin

View All Replies

How can I send a message from database to a J2EE application?

October 11

How can I send a message from database to a J2EE application? If I have a codetable in database that has new or modified values I have to refresh the codetable in my J2EE application. Most effective way would be send a message to initiate a table rel

View All Replies

How can i send an email with subject more than 50 char.

November 30

Hi Can you please explain How can i send an email with subject more than 50 char?? I am using Cl_BCS=>SET_MESSAGE_SUBJECT but it is throwing an error " An exception of the type CX_SY_REF_IS_INITIAL has occured which is not caught" . Regards A

View All Replies

How can I send a Powerpoint document from my Mac to a PC?

November 30

How can I send a Powerpoint document from my Mac to a PC?As an attachment in the usual way.Read other 2 answers

View All Replies

How can I send files via Bluetook from my Tour to other phones?

November 30

How can I send files via Bluetook from my Tour to other phones? I have even been able to pair to the other device, but I don't see the option to send/copy/move files through Bluetooth. I can only send my Address book via bluetooth. Please help!!Hi a

View All Replies

How can I send registeration data from Mac machine to NT machine?

November 30

How can i send or post data from Mac machine to NT machine without using browser? I m stucked. I want to register a customer from Mac machine by a container i.e. Form having awt components etc. and send it to NT machine to trigger it into SQL Server.

View All Replies

On my iPad I can only send email and messages to apple products.how can I send and receive from other devices other than Apple?

November 30

On my iPad I can only send email and messages to apple products.how can I send and receive from other devices other than Apple?Vallakat wrote: On my iPad I can only send email and messages to apple products. There is a huge difference between sending

View All Replies

How can i send video from my iphone 4s to email

October 11

How can i send video from my i phone 4s to an email address?Mail attachment size is determined by your ISP, & limit that size to betweem 10MB's & 25MB's, depending on ISP. So, unless it is a very small video, you won't be able to.Read other 2 answ

View All Replies

How can I send a .pdf attachement using maildemo_sql.txt

November 30

Hi I have created a PL/SQL package using the following link. Could you plese tell me how can I send a .pdf as an attachement using the follwing package? http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt regardsWhen usin

View All Replies

Using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?

October 11

using action script 2 how can i send a variable value to a dynamic textbox on a different keyframe?Thanks for your swift response. That sounds like a good solution, but the code I have on frame 2 is this timer = 0; countup = function(){ timer++; coun

View All Replies

How can i send mail

November 30

Hello! how can i send mail Thanks, BHy Hello! how can i send mailTake a closer look to the Java Mail Api, http://java.sun.com/products/javamail/ Thanks, B\RobertRead other 2 answers

View All Replies

How can i send my existing contacts on the iPhone to iCloud? it only send new ones.., how can i send my existing contacts on the iPhone to iCloud? it only send new ones..

November 30

How can I send my exisiting contacts to icloud. It is only backing up new contactsWelcome to the Apple Community. It sounds like those contacts may be in another account on your phone. I believe you can only move them to the iCloud account on a mac/P

View All Replies

How can I send an email from Sharepoint Online using sandbox solution?

October 11

How can I send an email from Sharepoint Online using sandbox solution? If possible I do not want to use workflow. Is It possible to do it without using workflow?hello Steven Andrews, when any user sends a message using contact us page in SharePoint o

View All Replies

How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!

November 30

How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!  I could understand

View All Replies

How can I send an XML request to the server using servlets

October 11

How can I send an XML request to the server using servletshttp://forum.java.sun.com/thread.jspa?threadID=5158333 http://forum.java.sun.com/thread.jspa?threadID=5158705 Crossposting is lame.Read other 2 answers

View All Replies

TS3672 how can i send readable emoji to other non-ios devices?

November 30

how can i send readable emoji to other non-ios devices? whenever i try to send a text message with emoji to other non ios devices it appears question mark (?) on that device,Hello, Claire, This question would appear to have nothing to do with Apple R

View All Replies

How can I send pictures or email from my desktop to a cell phone?

October 11

How can I send pictures or email from my desktop to a cell phone? I use Gmail for my emails.By sharing playlists you mean sending the list of song titles along with the songs themselves you can't.  That would violate Apple's contracts with the studio

View All Replies

Tags:

  1. iphone 4 does not regonizes sim card
  2. anonymous
  3. what hv to do after stolen kaptop
  4. lumia 640 video wide playback problem
  5. iphoto 8.1.2 hanging delete plist
  6. youtube does not open safari mac kids ç
  7. rounding off in PR to PO
  8. mp01 mpn
  9. how to make my bt id as a primary bt id
  10. SAP PI CPIC-CALL: ThSAPCMRCV
Copyrights 2017 Fcffair BigData Resource, All rights reserved