Found 92 Articles for ABAP

Use IFrame and read cookie in ABAP

seetha
Updated on 30-Jul-2019 22:30:20

162 Views

I think it is possible and can be simply achieved. You can do the following:Firstly, create a business server pages application on the server. Make sure the application contains a frameset and two IFrames as a part of the frameset.Then you need to split up the implementation between these two IFrames. First IFrame will contain the third party component and second component will contain the view and JS part of the application that we just created. Make sure the second frame does not have any height as it should be invisible to the user.Then you can write client-side code in ... Read More

Using ABAP, changing a value in itab by getting data from database table

Sai Subramanyam
Updated on 30-Jul-2019 22:30:22

963 Views

You should do this using a Modify statement as in below − LOOP AT itab. SELECT SINGLE matnr INTO itab-matnr FROM zlldet WHERE palet = itab-palet. MODIFY itab. ENDLOOP. Also note that when you have an internal table itab with a header line, it means that you have a table itab and structure itab and usage of this depends on the situation. Few of the commands like MODIFY and LOOP AT uses both at the same time. DATA itab TYPE TABLE OF [something]. DATA wa ... Read More

Generating any custom JSON in ABAP

Manikanth Mani
Updated on 05-Dec-2019 10:30:30

2K+ Views

You can use class ZCL_MDP_JSON Library that can encode/parse any JSON. JSON is supported natively in ABAP by the following features:With the use of JSON-XML- it is known as special XML format that can be used for JSON data to be described using an XML representation. By defining a mapping between ABAP types and JSON. This is used in serializations and deserializations using the identity transformation ID.As you can specify JSON data in different forms as an XML source in the statement CALL TRANSFORMATION and JSON can be specified as a target.Check out the following sample code:Example:DATA text TYPE string VALUE ... Read More

Creating User roles and profiles in SAP system

Manikanth Mani
Updated on 05-Dec-2019 10:34:33

191 Views

This can be done using – Legacy Systems Migration Workbench LSMW transaction. This workbench works like a sort of macro recorder and allows you to record the steps in a transaction and you can replay that record multiple times as per the requirement. This also allows you to replace the values you used in your recorded transaction with new values.A more complex option would be to write ABAP code and this is more flexible to add different privileges to different roles.

Aggregating rows in SAP ABAP with the same name

Alankritha Ammu
Updated on 05-Dec-2019 10:38:25

400 Views

You can use the COLLECT keyword or some aggregate functions to achieve the result. You should define some datatype to match the scenario.TYPES: BEGIN OFt_my_type,    key_aTYPE foo,    key_bTYPE foo,    nokey_cTYPE foo,    nokey_dTYPE foo, END OFt_my_type, tt_my_type_list TYPE STANDARD TABLE OF t_my_type WITH DEFAULT KEY, tt_my_type_hash TYPE HASHED TABLE OF t_my_type WITH KEY key_a key_b. DATA: lt_resultTYPE tt_my_type_list,    lt_sums TYPE tt_my_type_hash. FIELD-SYMBOLS: TYPE t_my_type. LOOP AT lt_result ASSIGNING .    COLLECT INTO lt_sums. ENDLOOP.Read More

Creating a Radio button group in ABAP Screen Painter

Akshaya Akki
Updated on 13-Feb-2020 10:55:29

4K+ Views

Screen Painter is known as an ABAP editor tool that can be used to create a screen. Screen Painter is used to create and manage all the elements in a screen.Transaction Code SE51There are various ways you can insert a Radio button to ABAP Screen Painter. First is by clicking on the radio button symbol on the left, then click on the canvas on the right to insert a radio button. You can repeat this for each button.Another option is that you open the dictionary window (blue rectangle with a smaller red rectangle inside). Type the variable name you used ... Read More

Using “SPELL AMOUNT” function to convert amounts in ABAP

George John
Updated on 30-Jul-2019 22:30:20

462 Views

You can use the standard function module “SPELL AMOUNT”. It will convert amounts to corresponding words. To display function module, use Transaction code: SE37 Click on Search icon and select Function module: “SPELL AMOUNT”

Converting date type SYDATUM in a format like MM/DD/YY in SAP ABAP

Alankritha Ammu
Updated on 13-Feb-2020 10:53:43

3K+ Views

It depends if you want to write it to a list screen or you want to convert it to a text variable. To write it to a list screen, you can use below code −WRITE I_my_dateMM/DD/YYYYTo convert it to a text variable, you can use below command −WRITE l_my_dateTO l_my_text MM/DD/YYYYIf you want to set the date in SAPscript form, you can use SET DATE MASK command. You can specify date fields to be printed in specified format −/: SET DATE MASK= 'date_mask'In the date mask, you can use the following codes −DD: day (two digits) DDD: day name - ... Read More

Explanation about SAP ABAP Stack and JAVA Stack and role of Java Stack during ECC upgrade

Ayyan
Updated on 06-Dec-2019 07:02:20

1K+ Views

Note that all SAP ERP all modules run on SAP ABAP stack. SAP NetWeaver Application Server (ABAP Stack) is part of the SAP NetWeaver portfolio and represents the ABAP-based technical basis for many SAP products. It delivers technical frameworks, tools, repositories, and much more.If you are planning to use SAP PI module then you should install Java Stack. Whenever you need something like- Adobe Interactive Forms or NetWeaver Portal stuff) that requires the Java Stack. You can go for an upgrade without installing Java Stack. In earlier releases of SAP ERP, there were SAP ABAP based instances. With the release ... Read More

Suppressing duplicate entries in classical and ALV report in SAP ABAP

Nikitha N
Updated on 12-Mar-2020 12:29:12

945 Views

To delete adjacent duplicate entries in an internal table, you can use the below command −DELETE ADJACENT DUPLICATE ENTRIES FROM                      [COMPARING ...                          |ALL FIELDS].Also, consider the below points −The system deletes all adjacent duplicate entries from the internal table . Entries are duplicate if they fulfill one of the following compare criteria:Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines.If you use the addition COMPARING ... Read More

Advertisements