thitima's blog

Create Dynamic Select in ABAP/4

In the example, i want to select data from table VBAK by created date as '20050105'. In the selected fields, i will choose them and append those fields into internal table 'it_fldtab'.

How to get status by ABAP

In SAP 4.6c, when we want to retrieve status of production order by ABAP, we can apply function 'STATUS_READ'. This function require only object no. of production order.

How to change user status by ABAP

In SAP R/3 4.6c, if we want to change user status in production order by ABAP, we can apply function 'I_CHANGE_STATUS'. This function requires object number, current active status and status that we want to set as active.

How to retreive data from transaction STAT

The STAT transaction is transaction for analyze the statistics by users or programs. These data is kept in the server as file. If we want to retreive these data, we should apply function 'SAPWL_STATREC_READ_FILE'. this function will return the raw data. you can take these data to analyze or verify depend on your requirement.

Example

How to apply BAPI_GOODSMVT_CREATE by PHP

If we want to create material document in SAP R/3 from external system, we can apply BAPI function BAPI_GOODSMVT_CREATE for this action. After we already call this function, we shoud call function BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK to commit or rollback our processes. In the example , i will create issue material doc by apply this function using PHP.

How to create queries for ABAP/4 query

Step for create queries is a necessary process for create ABAP/4 query.

  • Go to transaction SQ01
    img216
  • Input query name that want to create and click img219.
    img218
  • Select infoSet that you want to create ABAP/4 query.
    img226