ABAP - Advanced Business Application Programming :ABAP report,Interactive Report,ALV,ALE,IDOC,User Exit, RFC, Smartform,Sapscript,ABAP Performance,Remote Function Module( RFC ), Transactions Code. SAP Abap Tutorial. Abap Tutorials Programming, Abap Notes and Abap Tips.
Tuesday, June 15, 2010
READ_TEXT functions - read the SAP Long Text
DATA: TNAME LIKE THEAD-TDNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'PB'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'PBPT'
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Monday, November 23, 2009
Special Character deletion
SF_SPECIALCHAR_DELETE
Sunday, November 22, 2009
Function for Spell Amount
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
language = sy-langu
amount = w_amt2
filler = space
IMPORTING
in_words = spell
EXCEPTIONS
not_found = 1
too_large = 2.
Selection Screen using parameter statement
selection-screen begin of line.
selection-screen:
COMMENT 1(20) text-tst FOR FIELD p_date2,
POSITION 33.
parameters: p_date2 LIKE T549Q-begda.
selection-screen POSITION 39.
selection-screen:
COMMENT 52(3) text-and FOR FIELD p_date1,
POSITION 58.
parameters: p_date1 LIKE T549Q-begda.
selection-screen POSITION 64.
selection-screen end of line.
selection-screen end of block a1.
Saturday, November 21, 2009
Explicit Page Break: NEW-PAGE
The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.
Syntax:
/: NEW-PAGE [page_name]
SAPscript Control Commands
SAPscript control commands are entered and edited in the text editor in the same way as a normal line of text. They do, however, differ from normal lines of text:
* Enter the paragraph format /: in the format column to identify a control command.
* Enter the command itself in the text line. You will notice that all key words and other parts of the specification not given as literal values enclosed in inverted commas are automatically converted to capital letters.
* Make sure that a control command, together with any parameters it requires, does not occupy more than a single line.
* Enter only one control command in each line.
* Note that the editor formatting has no effect on lines containing control commands.
If a control command is unknown or it contains syntax errors, the line containing it is treated as a comment line. It is neither interpreted nor printed.
Wednesday, August 12, 2009
SAP Sales and Distribution Processing Document Flow
The sales documents you create are individual documents but they can also form part of a chain of inter-related documents. For example, you may record a customer’s telephone inquiry in the system. The customer next requests a quotation, which you then create by referring to the inquiry. The customer later places an order on the basis of the quotation and you create a sales order with reference to the quotation. You ship the goods and bill the customer. After delivery of the goods, the customer claims credit for some damaged goods and you create a free-of-charge delivery with reference to the sales order. The entire chain of documents – the inquiry, the quotation, the sales order, the delivery, the invoice, and the subsequent delivery free of charge – creates a document flow or history. The flow of data from one document into another reduces manual activity and makes problem resolution easier. Inquiry and quotation management in the Sales Information System help you to plan and control your sales.
Sales Document
VBAK Sales Document - Header Data
VBKD Sales Document - Business Data
VBUP Item Status
VBAP Sales Document - Item Data
VBPA Partners
VBFA Document Flow
VBEP Sales Document Schedule Line
VBAKUK Sales Document Header and Status Data
VBUK Header Status and Administrative Data
VBBE Sales Requirements: Individual Records
SD Delivery Documemt
LIPS Delivery Document item data
LIKP Delivery Document Header data
Billing Document
VBRK Billing:Header data
VBRP Billing:Item data