Posts

ABAP : Dynamic ITAB for Ranges

Example of ABAP Code Dynamic Internal Table - Ranges *---------------------------------------------------------------------* *      Form  f_ranges_str *      By Oka Wirasatha *---------------------------------------------------------------------* form F_RANGES_STR   using FV_FIELD         FV_SIGN FV_OPTION FV_LOW FV_HIGH.   type-pools:     ABAP.   data:     GR_STRUCTDESCR    type ref to CL_ABAP_STRUCTDESCR,     GR_TABLEDESCR     type ref to CL_ABAP_TABLEDESCR,     GR_DATADESCR      type ref to CL_ABAP_DATADESCR,     GR_TYPEDESCR      type ref to CL_ABAP_TYPEDESCR,     GT_COMPONENTS     type ABAP_COMPONENT_TAB,     GW_COMPONENT      type line of ABAP_COMPONENT_TAB,     GR_WA             type ref to DATA, ...

ABAP Dialog Programming : Set Filter data of Table Control

Example ABAP code for Filter data of table control *---------------------------------------------------------------------* *      Form  F_filter_data *---------------------------------------------------------------------* *  By Oka Wirasatha *---------------------------------------------------------------------* form F_FILTER_DATA .   field-symbols :     <selected_col> type CXTAB_COLUMN.   data : LW_COLS like TC_ITEM-COLS.   data : GT_FIELDCAT type LVC_T_FCAT.   data LAYO type LVC_S_LAYO.   data : GT_FILTER_INDEX type LVC_T_FIDX,          LT_SELCOL type table of LVC_S_COL with header line.   data : LT_FILT type LVC_T_FILT,          LW_FILT type LVC_S_FILT,          LT_LAYOUT type LVC_S_LAYO. * find out if a column is selected.   loop at TC_ITEM-COLS assigning <selected_col>.     if <selected_col...

ABAP Dialog Programming : Sorting selected column in Table Control

This is example of abap code for sorting selected table control. *---------------------------------------------------------------------* *      Form  F_SORT_TABLE *---------------------------------------------------------------------* *       text *----------------------------------------------------------------------* *      By Oka Wirasatha *----------------------------------------------------------------------* form F_SORT_TABLE using FV_CODE.   field-symbols :     <lfs1>,     <selected_col> type CXTAB_COLUMN.   data : LW_COLS like TC_ITEM-COLS.   data : LV_TXT1(20),          LV_INDEX(2) type N.   data : begin of W_SORT,           SORT01(20),           SORT02(20),           SORT03(20),           SORT04(20),         ...

Problem SAP-SCRIPT line command too long

Sometimes your sap scripts command too long, how to covered this ? Easy way is press  shift+F8.

Dynamic Selection Screen Base on TCODE

SELECTION-SCREEN BEGIN OF BLOCK SO WITH FRAME TITLE TEXT-001. SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,"Sales order number                   S_VBELND FOR LIKP-VBELN,"Delivery number                     S_VBELNI FOR VBRK-VBELN,"Invoice number                      S_VBELNP FOR VBKD-BSTKD."PO number            SELECTION-SCREEN END OF BLOCK SO.                             *--- EVENT AT SCREEN OUTPUT ------------------------------- AT SELECTION-SCREEN OUTPUT.   ...

Dynamic selection screens based on user input parameters

Dynamic selection screens based on user input parameters with dropdowns and execute button disabled. The selection screen  push button does the functionality of the disabled execute button REPORT  zsscr. *TYPE POOLS DECLARATIONS FOR VALUE REQUEST MANAGER AND ICONS TYPE-POOLS : vrm,              icon. *SELECTION SCREEN FIELDS TABLES : sscrfields. *GLOBAL DECLARATIONS DATA : flag TYPE c,       tablename(10),       mmtable LIKE dd02l-tabname,       sdtable LIKE dd02l-tabname,       hrtable LIKE dd02l-tabname. *DECLARATIONS FOR SELECTION SCREEN STATUS DATA it_ucomm TYPE TABLE OF sy-ucomm. **********SELECTION-SCREENS*********************

Dynamic Table Selection

REPORT zdany_dynamic_select. * We use some parameters to dynamically control the select, this is not very * clever but this is just a test program !! PARAMETER : p_tabnam TYPE tabname DEFAULT 'SFLIGHT',             p_selfl1 TYPE edpline DEFAULT 'CARRID',             p_selfl2 TYPE edpline DEFAULT 'CONNID',             p_selfl3 TYPE edpline DEFAULT 'FLDATE',             p_selfl4 TYPE edpline DEFAULT 'PRICE',             p_selfl5 TYPE edpline DEFAULT 'CURRENCY',             p_where1 TYPE edpline DEFAULT 'PRICE > 300',             p_where2 TYPE edpline DEFAULT 'AND CURRENCY = ''EUR'''. FIELD-SYMBOLS :  TYPE ANY TABLE,                  TYPE ANY,                  TYPE ANY. ...

Field Catalog Options In ALV

Added by Hareesh Menon, last edited by kishan P on Jan 13, 2012  (view change) Field catalog options : FIELDNAME:     You use this field to assign a field name of your output table to a row of the field catalog. All settings that you make in this row refer to the corresponding column of the output table. REF_FIELD: You must fill this field if: • the output table field described by the current entry in the field catalog has a corresponding field in the Data Dictionary and • the field name in the output table is not identical to the field name of the field in the Data Dictionary. If the field names are identical, it is sufficient to specify the DDIC structure or table in field REF_TABLE of the field catalog. REF_TABLE: You must fill this field only if the output table field described by the current entry in the field catalog has a corresponding entry in the Data Dictionary. Using this assignment, the ALV Grid Control can copy the text for the column he...

Maintain Message Class Validation and Substitution

Table GB02C is table for Link Message Class and Validation or Substitution. For Modify this table use program RGUGBR28 and generate coding with program RGUGBR00 after change message class.

SAP Error : System error (termination point Document Number Replacement)

In my SAP System implement splitting document, when try upload journal occurs error below : Error analysis     Short text of error message:     System error (termination point Document Number Replacement)     Long text of error message:      Diagnosis          An internal error has occurred.      System Response          You cannot continue with processing.      Procedure          Contact SAP to establish whether the error can only be rectified by          a program correction, or whether it can also be rectified by          changes to the settings. There may also be an error in the updating          of the data which must be resolved...

How to import SAP Script to Text File

Image
To IMPORT/EXPORT SAP Script we can used standard sap program  RSTXSCRP. Fill object name with name of sap script form and Execute (F8) oka

User Exit for Validation (GGB0)

For create complex validation role you can copy program RGGBR000 into ZRGGBR000 and then maintain table for assign new program ZRGGBR000 in tcode GCX2.After define role and activate, user exit will be available on validation.

BOM not loading in CK11N

I Have experience when running tcode CK11N, in tab Qty Struc. BOM data is empty. Why ? I'm try find the solution in Uncle Google, but not found the right answer. After asking my PP friend the solution is check setting in Material Master Tab MRP 2 for Procurement type should be "E" In-house production. Set this field to "E" and CK11N will be running well. ~Oka~

Add fields for Substitutions In Accounting Document (OBBH)

How to add new fields Cost Center (KOSTL) for substitutions in accounting transaction ? Modify view VWTYGB01 in SM30 where boolclass = '009' and classtype = 'S' and bcltab = 'BSEG' and bclfield = 'KTOSL'  untick fields BEXCLUDE Running Report RGUGBR00 and fill Application area with 'FI' and tick item that you want to generate. Now fields KOSTL will be turn up in Substitution. hope it's helpful

Why in New GL Receive Asset From PO posted to Dummy PC

I have experience when try to receive asset from PO (MIGO/MB01) FI posted for line item asset fill profit center Dummy. I'm check setting in material master and asset master data to find is profit center / cost center right value and noting wrong. Finally I'm try to debug the program and I'm found even in substitution we change profit center to right value but after step substitution the profit center value change again to Dummy PC, this step read from table V_T8A30 (3KEH). Correction this problem just setting derivation role for profit center in tcode 3KEI. After setting this derivation role, my FI document fill right profit center. Summary : Even in new GL this classic setting have to customizing. Cheers Oka

SAP Note 325546 - CO line item reports : Creating a user-defined field

Base on sap note 325546, I will give example for add new fields Order type to report KOB1. Go to tcode SM34 and maintain view table V_TKALV add new fields ZZAUART in structure KAEP_COAC, field group "K". Go to sap enhancement SMOD and entry Enhancement project COOMEP01 and click button test run. double click include table CI_RKPOS and add new component ZZAUART component type AUFART. Then activated structure CI_RKPOS. Double click FM EXIT_SAPLKAEP_001. In area Function module double click ZXKAEPU01 to create include file. Add this code  CHECK i_rep_object = 'OR'. SELECT SINGLE auart INTO cs_record-zzauart FROM aufk WHERE aufnr = cs_record-aufnr. Activated ZXKAEPU01 and then actived COOMEP01. Now you can see in KOB1 fields order type in line item data. (Oka)

RFCEXEC

You can see it in SM59 -> TCP/IP Connection -> SERVER_EXEC -> System Information -> Function list. RFC_RAISE_ERROR  !!! FOR INTERNAL USE ONLY !!! RFC_REMOTE_EXEC  allows to start programs and to pipe an internal table into  stdin without waiting for the program to end.  IMPORTING    COMMAND        C(256)      program name.  TABLES    PIPEDATA       C(80)      internal table serves as input to the started program. RFC_REMOTE_FILE  allows to read or write text files.  IMPORTING    FILE           C(256)      file name    WRITE          C(1)                 (Default SPACE)    ...

SAP Online Help PDFs

SAP Online Help PDFs http://www.consolut.com/ The following PDF files contain the 4.6C descriptions of the SAP R/3 environment. With an installed SAP system, you can teach yourself in SAP. This SAP Online Help is really complete especially concerning the business processes and can be printed very easy.

A current or future standard price exists for material ....

A current or future standard price exists for material 1610616033 Message no. CKPRCH025 Diagnosis A current or future cost estimate exists. Procedure You can set the price of a marked cost estimate through the radio button 'Default Planned Prices' and release it by saving.  ***** This message come up when i am try to change standard price of material. Why ? 

Upload Kurs to SAP from BI web site

Image
dSanca adalah program untuk upload rate dari website Bank Indonesia ke SAP. jika tertarik silakan di download versi trialnya disini .