Posts

SAP READ Statements...

Hello Blog Readers, This blog is for those who would like to know about the SAP ABAP READ statement varieties. And, I hope you would enjoy this blog!! :-). Please correct/suggest if any wrong observed/found. Read Statement: In simple understanding Read statement is used to perform certain operations(Append/Modify/Delete) to internal table/fetch corresponding record from internal table based on condition/index etc.. From below examples, Before ABAP 7.40 Code ** Read Statement using Index Read Table <itab> into <wa> index <no>. *** From above statement, It is clear to understand, that a internal table <itab> ***record is fetched into <wa> based on given Index number. *** Make sure, the records exists else handle with exception cases to avoid run-time *** errors. **Read Statement using with key & non binary search Read Table <itab> into <wa> with key <Field1><operator><value>. *** From above statement, It is obse...

Internal Table Operations & Declarations.

Hello SAP Viewers, :-) Welcome to SAPWorldPark Blog. :-). This blog is completely useful for those who would like to learn/revise SAP ABAP basics. And content covers completely about Multiple ways to declare Internal table and their operations.  All most, all the required actions/operations are covered here. **... User defined datatypes (structure) TYPES : BEGIN OF ty_t001, "Customized Company Code Structure                bukrs TYPE bukrs,   "Company Code                butxt TYPE butxt,    "Company Name                ort01 TYPE ort01,    "City                land1 TYPE land1,   "Country Key                waers TYPE waers,  "Currency Key   ...

SAP Selection Screens

Image
 Hello SAP Viewer, :-) Welcome to SAPWorldPark Blog. :-). This Blog is completely about SAP ABAP Input Selection Screen. I mostly covered all the Selection Screen variations implement in code. **... Data Declarations. TABLES : vbak, sscrfields. DATA : lv_char10 TYPE char10. **... **... PARAMETERS and ADDITIONS SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001. **.. 1: Declare input Parameter PARAMETERS : p1_bukrs TYPE bukrs. **... **... 2: Input parameter with addition default value. PARAMETERS : p2_bukrs TYPE bukrs DEFAULT '1000'. **... **... 3: Manditory input PARAMETERS : p3_bukrs TYPE bukrs OBLIGATORY. **... **... 4: Check input is valid value PARAMETERS : p4_bukrs LIKE knb1-bukrs OBLIGATORY VALUE CHECK. **... **... 5: input as checkbox PARAMETERS : p5_bukrs AS CHECKBOX. " Similar for listbox too. **... **... 6: input as radiobutton along with Modif ID. PARAMETERS : p6_bukrs RADIOBUTTON GROUP g1 MODIF ID mod,   ...

SAP String Operations

Image
Hello SAP Lovers, :-) Welcome to SAPWorldPark Blog. :-) This blog is completely about SAP basics on String Operations. DATA : lv_string    TYPE string,        lv_string2   TYPE string,        lv_slength   TYPE i. START-OF-SELECTION. * All String Operators. **... * 1. String Length.   WRITE / : '1. String Length.'.   lv_string = 'This is my String'.   WRITE / : lv_string.   lv_slength = strlen( lv_string ).   WRITE : / 'lv_lenth = strlen(This is my String) :',lv_slength.   CLEAR lv_string.   SKIP 2. **... **... * 2. Concatenate.   WRITE / : '2. Concatenate.'.   lv_string  = 'String1'.   lv_string2 = 'String2'.   WRITE / : lv_string, lv_string2.   CONCATENATE lv_string lv_string2           INTO lv_string SEPARATED BY ','.   WRITE / : lv_string. ...