ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

ABAP Programs: Setting the layout position of fields

Print This Post Email This Post Written by admin on Nov 14th, 2007 | Filed under: ABAP Programs

REPORT ZSOURCE0804.

DATA: POS TYPE I,
LEN TYPE I.

WRITE AT 5 ‘position 5′.
POS = 20.
WRITE AT POS ‘position 20′.
POSITION 40.
WRITE ‘position 40′.

POS = 10. LEN = 20.
NEW-LINE.
WRITE AT POS(LEN) ‘position 10, length 20′.

~~~~~ End of post ~~~~~

———————
ABAPer, mail: abap.community@gmail.com http://www.erpdb.info

Share

If you like this post, you may as well like these too:

  1. ABAP Programs: Inserting lines at a specified position REPORT ZSOURCE1206.* Work area for a database tableTABLES CUSTOMERS.* Types for later useTYPES: BEGIN OF T_CUSTOMER_CITY, ID LIKE CUSTOMERS-ID, CITY LIKE CUSTOMERS-CITY, END OF T_CUSTOMER_CITY.* Internal table with two columnsDATA...
  2. ABAP Programs : Using the Basic Layout Formats REPORT ZSOURCE0801. * Simple output containing the current dateWRITE: ‘This is the current date:’, SY-DATUM. * Displaying fields according to their typeDATA: STRING(20), INT TYPE I, PACKED_NUMBER TYPE P DECIMALS...
  3. ABAP Programs: Using system fields REPORT ZSOURCE0409. WRITE: / ‘Current date’, SY-DATUM, / ‘Current table index’, SY-TABIX, / ‘Loop counter’, SY-INDEX, / ‘System return code’, SY-SUBRC.———————ABAPer, mail: abap.community@gmail.com http://www.erpdb.info...
  4. ABAP Programs: Copying fields REPORT ZSOURCE0701. * move fieldsDATA: NAME(25), COUNTER TYPE I.DATA: SOURCE LIKE NAME, TARGET LIKE SOURCE.MOVE: ‘Edison’ TO NAME, 17 TO COUNTER.MOVE SOURCE TO TARGET.* Using the compute command (keyword can...
  5. ABAP Programs: Selecting Single Fields REPORT ZSOURCE1106.* Work area for a database tableTABLES CUSTOMERS.* Selecting single fieldsDATA: CID LIKE CUSTOMERS-ID, CNAME LIKE CUSTOMERS-NAME.SELECT ID NAME INTO (CID,CNAME) FROM CUSTOMERS. WRITE: / CID, CNAME.ENDSELECT. ~~~ end...
  6. ABAP Programs: Converting date fields * Using the built-in calendarDATA: RECEIVING_DATE TYPE D, LAST_ADMISSIBLE_DATE TYPE D. RECEIVING_DATE = ’19980223′.LAST_ADMISSIBLE_DATE = RECEIVING_DATE + 10.WRITE / LAST_ADMISSIBLE_DATE. RECEIVING_DATE = ’19980305′.LAST_ADMISSIBLE_DATE = RECEIVING_DATE + 10.WRITE / LAST_ADMISSIBLE_DATE. RECEIVING_DATE...
  7. ABAP Programs: Converting number fields * Using numeric texts and packed numbersDATA: NO_EMPLOYEES(4) TYPE N, NO_ROOMS TYPE P, EMPLOYEES_PER_ROOM TYPE P DECIMALS 2.EMPLOYEES_PER_ROOM = NO_EMPLOYEES / NO_ROOMS. * Rounding with integers and packed numbersDATA: INCOME...
  8. ABAP Programs: Converting character fields REPORT ZSOURCE0703. * Truncating fields or padding with blanksDATA: SHORT_NAME(8), LONG_NAME(16).MOVE ‘Washington’ TO: SHORT_NAME, LONG_NAME.WRITE: / SHORT_NAME, LONG_NAME. * Take care of intermediate stepsLONG_NAME = SHORT_NAME = ‘Washington’.WRITE: / SHORT_NAME,...
  9. ABAP Programs :Using Field Symbols for variable parts of fields REPORT ZSOURCE2402. DATA: EXTERNAL_RECORD(4000), POSITION TYPE I, LENGTH TYPE N. FIELD-SYMBOLS < ENTRY>. EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'. DO. LENGTH = EXTERNAL_RECORD+POSITION(4). IF LENGTH = 0. EXIT. ENDIF. ADD 4 TO POSITION....
  10. Setting for FI MM account determination FI MM settings are maintained in transaction code OBYC. Within these there are various transaction keys to be maintained like BSX, WRX, GBB, PRD etc. In each of these transaction...
  11. Configuration Setting for Costing Variant Costing variant forms the link between the application and Customizing, since all cost estimates are carried out and saved with reference to a costing variant. The costing variant contains all...
  12. Setting up translation in Sap System Setting Up Translation in SAP System – Multilingual Technology Discusses about Basic Translation Concept Language Imports Defining the translation environment in SLWA Transport Recording + Language Exports Direct PDF Download...
  13. Adopt Standard Setting for Message Determination facility The Message Determination Facility is by default active and message determination schema is supplied for all purchasing documents including POs, PRs, RFQs etc. All of the desired message types must...
  14. Characteristics and Value Fields In the operating concern two things are basically defined Characteristics Value Fields Characteristics are nothing but those aspects on which we want to break down the profit logically such as...
  15. SAP System Fields SAP System Fields AlphabeticalSAP System Fields Categorised ~ end of post ~ ———————ABAPer, mail: abap.community@gmail.com http://www.erpdb.info...



Leave a Reply