Found 1039 Articles for SAP

Negation logic in SAP ABAP

vanithasree
Updated on 05-Dec-2019 09:46:16

605 Views

You can use BOOLC to sort out your requirement. It should be like thisVarbool= BOOLC( NOT Logical operation)But be clear in your implementation, as ABAP does not have true bool type. It does not store true or false in bool type rather it stores ‘X’ or ‘’ for true and false respectively.You can also try to use XSDBOOL instead of BOOLC.

Passing data from one report to another in ABAP using SUBMIT \\\

Vikyath Ram
Updated on 30-Jul-2019 22:30:20

327 Views

There doesn't seem to be any error in your syntax. Please verify if you declared the variables correctly. In case they are defined correctly, try the extended syntax check to see the error. The extended check can be done by going to PROGRAM => Check => Extended Syntax Check.

Updating default value of new column in SAP system

Rishi Raj
Updated on 30-Jul-2019 22:30:20

420 Views

It is not good practice to update default values to a column as this will not be visible directly in the system and will not be picked by CTS. Also, there is no option in the SAP/ABAP environment of adding default values to the table column. If you choose to make the new column have NON-NULL values, you will have to manually update default values and it will take a lot of time to modify the table.  The best way is to choose your default value as spaces, zeroes and so on depending upon the type of column.

Information for obsolete functions in SAP ABAP

Vikyath Ram
Updated on 05-Dec-2019 10:21:38

336 Views

Generally, the information is present in the obsolete function module documentation itself. Here is snapshot of information for “DOWNLOAD” function.

Error while using LOOP…..WHERE in SAP ABAP

Rishi Raj
Updated on 30-Jul-2019 22:30:20

358 Views

LOOP….WHERE condition was included recently in ABAP. Could you please verify your version?  This will work only on a version of 7.0 Ehp2 or higher.

Fetch fields from table or structure in ABAP SAP

Monica Mona
Updated on 14-Feb-2020 10:07:18

3K+ Views

If you need to identify the fields and number of fields in a structure, then you should use runtime type services. Using runtime type services makes more sense in this case as if we have some data in our environment, then it’s not ideal to call database for fetching the same.DATA(structure) = VALUE ( ) DATA(Descriptor) = CAST cl_abap_structdescr( cl_abap_datadescr=>describe_by_data                    (structure) ) DATA(Fields = LINES(Descriptor ->components ) This will give you the count of the components of the table or structure.You can also try another option if you do not want to ... Read More

Identify the database used for backend in ABAP

Samual Sam
Updated on 30-Jul-2019 22:30:20

275 Views

If you would have searched a little in the SAP documentation, then you would have found out the answer.You can use the CL_DB_SYS=>DBSYS_TYPE to fetch the database. For e.g. If you are using SAP HANA as the database, then the DBSYS_TYPE will have the value as HDB.

RV_INVOICE_DOCUMENT_READ not returning any data in form in SAP FM

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

398 Views

I think what you may be missing over here is Alpha conversion set.When you are calling a function module in SE37, it performs alpha conversions as a part of parameter processions. You might do go for internal formatting of the parameters before passing it to ABAP for further use.

Sort data in SQL using Dynamic SQL in SAP HANA

Giri Raju
Updated on 05-Dec-2019 09:51:18

1K+ Views

In order to execute dynamic SQL in your stored procedure, you need to use the ‘EXECUTE IMMEDIATE’ statement. You can use SQL as shown below to execute it:EXECUTE IMMEDIATE 'SELECT FROM ' || : || ' DESC';Another thing to notice over here is that if you are planning to use the table type in the final select statement with dynamic SQL, it will not work. Dynamic SQL does not support table type in select. What you can try as a work around is that you can dump the data in a temporary table before using it in the ... Read More

Using SAP Web Service from SAP by PHP with parameters

Anvi Jain
Updated on 30-Jul-2019 22:30:20

440 Views

Possible reason would be that SAP is case sensitive. Please try using HeadData instead of HEADDATA. Take a look at WSDL - all members inside “StandardMaterialSaveData” are option and SOAP is case sensitive so try using HeadData instead of HEADDATA

Advertisements