Posts

parallel processing

Developers implement parallel processing using specific ABAP syntax and standard function modules:  CALL FUNCTION ... STARTING NEW TASK ... DESTINATION IN GROUP ... Initiates an asynchronous call to a remote-enabled function module in a separate dialog work process. PERFORMING <subroutine> ON END OF TASK Specifies a callback routine in the main program that executes when the parallel task finishes. RECEIVE RESULTS FROM FUNCTION ... Used within the callback routine to retrieve IMPORT, EXPORT, and TABLE parameters from the completed function module. WAIT UNTIL <logical expression> Suspends the main program until a condition (e.g., all tasks are completed) is met. SPBT_INITIALIZE Optional function module to check the availability of resources and determine the number of free work processes for efficient data packet sizing. Implementation Frameworks For simplifying development, several SAP-provided frameworks are available:  Procedural Approach (aRFC based): The classi...

Sending email

    CALL METHOD cl_cam_address_bcs=>create_internet_address     CALL METHOD lo_send_request->add_recipient

FP_JOB_CLOSE throws an exception. (sy-subrc 2: system error)

Hi, We have a report which generates PDF documents. During the process the FM FP_JOB_CLOSE throws an exception. (sy-subrc 2: system error). Interesting part is that, it works fine in development and integration system. But throws this exception only in Q. Here is the error message i can see in debug mode: Reference :  https://community.sap.com/t5/application-development-and-automation-discussions/the-fm-fp-job-close-throws-error/td-p/12719075 Refer:   Usage and System Error in SAP Adobe Refer:  ADS: SOAP Runtime Exception: CSoapExceptionTransport :(100101) CX_FP_RUNTIME_SYSTEM ADS_NO_RESULT F23D9BD05B30754F85AE6E206713113B SPOOL_NO_XDC 74D76E3FEABD6C61E10000000A1550A8 ADS_ERROR 594E4D42A52F4778E10000000A1551FF RFC_ERROR C621084226C43C11E10000000A1551FF SOAP_ERROR B84D4D42A52F4778E10000000A1551FF CX_ROOT TEXTID B84D4D42A52F4778E10000000A1551FF PREVIOUS {O:INITIAL} KERNEL_ERRID IS_RESUMABLE CX_ROOT 16AA9A3937A9BB56E10000000A11447B INTERNAL_SOURCE_PO...

SAP CAPM

 -> npm install --save @sap/xsenv -> install node 18 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash source ~/.bashrc command -v nvm nvm install 18.1.0 nvm use 18.1.0 -> npm install --legacy-peer-deps -> manually change in package.json , @sap/cds and @sap/cds/-dk version to 7.9.0 and 7.9.2 Adjust the mta.yaml file While most parts of the file are generated by the cds tooling, some parts have to adjusted. This includes the following: Add an oauth2-redirect URI to the xsuaa resource configuration. Read more in SAP Note 2864831. Add the role-collection definitions to the xsuaa resource configuration. Extend the config section of the risk-management-auth resource in your mta.yaml file, by adding the following snippet to the config: ============================================================  forwardAuthToken: true # <-- required to forward the JWT token from app router to srv module cf login -a <endpoint> -u <user...

IDocs

IDoc IDoc Structure Control record EDIDC Data Record EDIDD Status Record EDIDS ====== configuration SALE SM59 WE21 BD51 WE42 ====== MASTER_IDOC_DISTRIBUTE Push IDoc Fetch Send changes only Change pointer tables BDCP & BDCPS. new table BDCP2 Change log tables CHHDR & CDPOS CHANGE_POINTER_READ BD61 - Activate change pointer globally BD50- Change pointer for message type BD64 - Distribution model WE20- maintain partner profile ====== IDoc reprocessing BD87 WE19 ======= Status codes 51 53 64 ====== NACE ====== Program for change pointer RBDBMIDOC (BD21)

Displaying internal table

1. DATA: gr_table TYPE REF TO cl_salv_table. TRY. CALL METHOD cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = lt_mara ) . CATCH cx_salv_msg. ENDTRY. gr_table->display( ). ============================================ 2. CALL METHOD cl_demo_output=>display EXPORTING data = gt_vendor.