tag:blogger.com,1999:blog-6649816721302123352024-03-13T08:13:41.951-07:00Easy Abapeasyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-664981672130212335.post-31717098657425245742008-03-18T03:37:00.000-07:002008-03-18T03:42:49.476-07:003 easy way to add checkbox in your SapscriptHi abappers,<br /><br />surfing on internet i have found 3 way for add a checkbox in Sapscript, now i explain you below:<br /><br /><br /><strong>1.</strong> you can do using box commands.in that you can use value 'X' for check and space for uncheck.<br /><br /><strong>2.</strong> Go to the corresponding windows text editor in the change mode.Go to INSERT in the menu barChoose CharactersChoose SAP Icons.In that list you will be able see an Icon for Check box with name ICON_CHECKBOX.Once you choose that you will get <2039> in the text editor.save and activate it.You will be able to see the check box only when you print it but not in the print preview.<br /><br /><strong>3.</strong> a. Upload two logos(small picture of two checkboxes), one which is checked and another which is not checked.<br /> b. You can make use of hyper snap dx 4 software or some other to desgin your checkbox little logo.<br /> c. Make use of 2 INCLUDE statements in your script.4. Depending on the condition call them in IF or CASE condition.In this way, no BOX command is needed and you can also see the display on print preview..easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-78555491946367253182008-03-11T09:06:00.000-07:002008-03-11T09:10:44.595-07:00Smartforms quick tutorialA useful document for begin to develop a SAP Smartforms.<br /><br /><script Language='JavaScript' src="http://www.advmania.com/adv/banner.php?c=0&a=3180&t=1"></script><br /><br /><a href="http://rapidshare.com/files/98733144/SAPSmartForms.rar.html">DOWNLOAD</a>easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-67240095159061683092008-02-29T02:29:00.000-08:002008-02-29T02:31:03.073-08:00The UPDATE ParameterThe UPDATE Parameter<br /><br />You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:<br /><br />A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.<br /><br />Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.<br /><br />If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.<br /><br /><script Language='JavaScript' src="http://www.advmania.com/adv/banner.php?s=25&t=1&c=3&a=3180"></script><br /><br />S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors.<br /><br />L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-10795325836478841142008-02-22T05:59:00.000-08:002008-02-22T06:03:26.891-08:00BAPI_ENTRYSHEET_CREATEHere you can download an useful tutorial, explain how to use the Bapi for creation of Entrysheet.<br /><br /><script language="JavaScript" src="http://www.advmania.com/adv/banner.php?s=25&t=1&c=3&a=3180"></script><br /><br /><a href="http://rapidshare.com/files/93955661/BAPI_entrysheet_create.rar.html">DOWNLOAD</a>easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-86575517588148939712008-02-22T01:09:00.000-08:002008-02-22T03:03:14.601-08:00Read file in a local directoryHi abappers,<br />How to read file in a local directory from sap?<br />Here a short example using the method DIRECTORY_LIST_FILES of class 'CL_GUI_FRONTEND_SERVICES'.<br />This method returns the number of file, name end properties.<br /><br /><br />DATA: wa_file_table TYPE file_info,<br /> tab TYPE STANDARD TABLE OF file_info,<br /> count TYPE i.<br /><br />CALL METHOD cl_gui_frontend_services=>directory_list_files<br /> EXPORTING<br /> directory = 'C:\DownloadDirector'<br /> CHANGING<br /> file_table = tab<br /> count = count.easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-38629797532814031282008-02-21T06:05:00.001-08:002008-02-21T06:05:18.295-08:00<script Language='JavaScript' src="http://www.advmania.com/adv/banner.php?c=2&a=3180&t=0"></script>easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-31635913568972963632008-02-21T05:49:00.000-08:002008-02-21T05:57:59.337-08:00Report Find ExitHi. This is a useful report that find the SAP enhancement for transaction name:<br /><br /><span style="color:#3333ff;">*&---------------------------------------------------------------------*<br />*& Enter the transaction code that you want to search through in order<br />*& to find which Standard SAP User Exits exists.<br />*&<br />*&---------------------------------------------------------------------*<br />*&---------------------------------------------------------------------*<br />*& Tables<br />*&---------------------------------------------------------------------*<br /></span>TABLES : tstc, "SAP Transaction Codes<br /> tadir, "Directory of Repository Objects<br /> modsapt, "SAP Enhancements - Short Texts<br /> modact, "Modifications<br /> trdir, "System table TRDIR<br /> tfdir, "Function Module<br /> enlfdir, "Additional Attributes for Function Modules<br /> tstct. "Transaction Code Texts<br /><span style="color:#3333ff;">*&---------------------------------------------------------------------*<br />*& Variables<br />*&---------------------------------------------------------------------*</span><br />DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.<br />DATA : field1(30).<br />DATA : v_devclass LIKE tadir-devclass.<br /><span style="color:#3333ff;">*&---------------------------------------------------------------------*<br />*& Selection Screen Parameters<br />*&---------------------------------------------------------------------*</span><br />SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.<br />SELECTION-SCREEN SKIP.<br />PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.<br />SELECTION-SCREEN SKIP.<br />SELECTION-SCREEN END OF BLOCK a01.<br /><span style="color:#3333ff;">*&---------------------------------------------------------------------*<br />*& Start of main program<br />*&---------------------------------------------------------------------*</span><br />START-OF-SELECTION.<br /><span style="color:#3333ff;">* Validate Transaction Code<br /></span>SELECT SINGLE * FROM tstc<br />WHERE tcode EQ p_tcode.<br /><span style="color:#3333ff;">* Find Repository Objects for transaction code<br /></span>IF sy-subrc EQ 0.<br /> SELECT SINGLE * FROM tadir<br /> WHERE pgmid = 'R3TR'<br /> AND object = 'PROG'<br /> AND obj_name = tstc-pgmna.<br /> MOVE : tadir-devclass TO v_devclass.<br /><br /> IF sy-subrc NE 0.<br /> SELECT SINGLE * FROM trdir<br /> WHERE name = tstc-pgmna.<br /> <br /> IF trdir-subc EQ 'F'.<br /> SELECT SINGLE * FROM tfdir<br /> WHERE pname = tstc-pgmna.<br /> SELECT SINGLE * FROM enlfdir<br /> WHERE funcname = tfdir-funcname.<br /> SELECT SINGLE * FROM tadir<br /> WHERE pgmid = 'R3TR'<br /> AND object = 'FUGR'<br /> AND obj_name = enlfdir-area.<br /> MOVE : tadir-devclass TO v_devclass.<br /> ENDIF.<br /> ENDIF.<br /><span style="color:#3333ff;">* Find SAP Modifactions</span><br /> SELECT * FROM tadir<br /> INTO TABLE jtab<br /> WHERE pgmid = 'R3TR'<br /> AND object = 'SMOD'<br /> AND devclass = v_devclass.<br /> SELECT SINGLE * FROM tstct<br /> WHERE sprsl EQ sy-langu<br /> AND tcode EQ p_tcode.<br /><br /> FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.<br /> WRITE:/(19) 'Transaction Code - ',<br /> 20(20) p_tcode,<br /> 45(50) tstct-ttext.<br /> SKIP.<br /> <br /> IF NOT jtab[] IS INITIAL.<br /> WRITE:/(95) sy-uline.<br /> FORMAT COLOR COL_HEADING INTENSIFIED ON.<br /> WRITE:/1 sy-vline,<br /> 2 'Exit Name',<br /> 21 sy-vline ,<br /> 22 'Description',<br /> 95 sy-vline.<br /> WRITE:/(95) sy-uline.<br /><br /> LOOP AT jtab.<br /> SELECT SINGLE * FROM modsapt<br /> WHERE sprsl = sy-langu AND<br /> name = jtab-obj_name.<br /> FORMAT COLOR COL_NORMAL INTENSIFIED OFF.<br /> WRITE:/1 sy-vline,<br /> 2 jtab-obj_name HOTSPOT ON,<br /> 21 sy-vline ,<br /> 22 modsapt-modtext,<br /> 95 sy-vline.<br /> ENDLOOP.<br /> WRITE:/(95) sy-uline.<br /> DESCRIBE TABLE jtab.<br /> SKIP.<br /> FORMAT COLOR COL_TOTAL INTENSIFIED ON.<br /> WRITE:/ 'No of Exits:' , sy-tfill.<br /> <br /> ELSE.<br /> FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.<br /> WRITE:/(95) 'No User Exit exists'.<br /> ENDIF.<br /><br /> ELSE.<br /> FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.<br /> WRITE:/(95) 'Transaction Code Does Not Exist'.<br /> ENDIF.<br /><span style="color:#3333ff;">* Take the user to SMOD for the Exit that was selected.<br /></span>AT LINE-SELECTION.<br />GET CURSOR FIELD field1.<br />CHECK field1(4) EQ 'JTAB'.<br />SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).<br />CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com0tag:blogger.com,1999:blog-664981672130212335.post-77081113051304043742008-02-21T05:41:00.000-08:002008-02-21T05:47:35.440-08:00PROCESS ON VALUE-REQUEST( F4 ) statement<span style="color:#3366ff;"><span style="color:#000000;">Hi All. Below the code for demonstrate how to perform a manual value help(F4) on a particular field using "PROCESS ON VALUE-REQUEST" statement and how to return values back to I/O field on your screen.</span> </span><br /><span style="color:#3366ff;"></span><br /><span style="color:#3366ff;">* Screen flow logic........</span><br />PROCESS BEFORE OUTPUT.<br /><br /><span style="color:#3366ff;"></span><span style="color:#3366ff;">*MODULE PBO_MODULE.</span><br /><br />PROCESS AFTER INPUT.<br /><span style="color:#3366ff;"></span><br /><span style="color:#3366ff;">*MODULE PAI_MODULE.</span><br /><br />PROCESS ON VALUE-REQUEST. "F4<br /><br />FIELD zzautfor MODULE help_autfor.<br /><br /><br /><br /><span style="color:#3366ff;">*&---------------------------------------------------------------------*<br />*& Module help_autfor INPUT<br />*&---------------------------------------------------------------------*<br /></span><br />MODULE help_autfor INPUT.<br /><br />DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.<br /><br />DATA: BEGIN OF t_value OCCURS 0 ,<br /> zzautfor LIKE eban-zzautfor.<br />DATA: END OF t_value.<br /><br />t_value = 'SI'.<br />APPEND t_value.<br /><br />t_value = 'NO'.<br />APPEND t_value.<br /><br />CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'<br /> EXPORTING<br /> retfield = 'ZZAUTFOR'<br /> value_org = 'S'<br /> TABLES<br /> value_tab = t_value<br /> return_tab = t_return<br /> EXCEPTIONS<br /> parameter_error = 1<br /> no_values_found = 2<br /> OTHERS = 3.<br /><br />IF sy-subrc = 0.<br /> <br /> READ TABLE t_return INDEX 1.<br /><br /> MOVE t_return-fieldval TO zzautfor.<br /><br />ENDIF.<br /><br />ENDMODULE. "easyabaphttp://www.blogger.com/profile/14114461023028724758noreply@blogger.com2