SAP Workflow using Class Real Time Project
Вставка
- Опубліковано 8 вер 2024
- Real time Project using OOPS Global Class in SAP Workflow
SAP Interview Preparation: • SAP Interview Preparation
SAP Real Time project Training : • SAP Real Time Project ...
SAP Latest Trends : • SAP Latest Trends
SAP S/4 HANA : • SAP S/4 HANA
SAP ABAP: • SAP ABAP
SAP BW : • SAP BW Tutorial for Be...
SAP FICO : • SAP FICO Tutorial for ...
SAP MM : • SAP MM
SAP HR : • SAP HR Tutorial for Be...
SAP HANA : • SAP HANA
SAP S/4 HANA Finance : • SAP S/4 HANA Finance
SAP S/4 HANA Logistics : • SAP S/4 HANA Logistics
SAP HANA ABAP : • SAP HANA ABAP
Artificial Intelligence: • Artificial Intelligenc...
JH SOFTECH No1 for SAP Jobs
For Software training info@jhsoftech.com
For SAP Jobs ,contact us at jobs@jhsoftech.com
#SAP #Workflow #RealTimeScenario
JH SOFTECH Global Leader in SAP Training
Hello sir, I have watched your video and it is very informative, but I want to create a workflow which contain an event of one OO ABAP class. so that I can initiate the work flow from any of my report Program or TMG event. Can you suggest me some UA-cam video link or Documentation for that?
Sure! To create a workflow in SAP that involves an event from an OO ABAP class and can be initiated from a report program or a TMG event, you can follow these general steps:
1. **Create the ABAP Class**: Define an ABAP class with an event that will be triggered.
2. **Define the Workflow**: Create a workflow in the Workflow Builder (transaction SWDD) and include the necessary steps.
3. **Link the Event to the Workflow**: Use transaction SWEC to link the event of your ABAP class to start the workflow.
4. **Trigger the Event**: Write a report program or TMG event that triggers the event in your ABAP class.
Here are some resources that might help you:
### UA-cam Videos
1. [Creating a Simple SAP Workflow](ua-cam.com/video/Tn1-AESRghs/v-deo.html)
2. [SAP Workflow Tutorial](ua-cam.com/play/PL6hZo0-ANOSUYhGk7JKs7w-zyHb263TPR.html)
### Documentation
1. [SAP Workflow Documentation]( help.sap.com/saphelp_snc700_ehp01/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm )
2. [SAP Community - Workflow](community.sap.com/topics/workflow)
3. [SAP ABAP OO Programming](help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/index.htm?file=abensoo_objects.htm)
### Steps in Detail:
1. **Create an ABAP Class with Event**:
```abap
CLASS zcl_my_class DEFINITION.
PUBLIC SECTION.
EVENTS my_event.
METHODS: trigger_event.
ENDCLASS.
CLASS zcl_my_class IMPLEMENTATION.
METHOD trigger_event.
RAISE EVENT my_event.
ENDMETHOD.
ENDCLASS.
```
2. **Define the Workflow**:
- Go to transaction SWDD.
- Create a new workflow.
- Add steps (activities, user decisions, etc.) as required.
3. **Link the Event to the Workflow**:
- Go to transaction SWEC.
- Create a new entry and link the event of your ABAP class to the workflow.
4. **Trigger the Event in a Report Program**:
```abap
DATA: lo_instance TYPE REF TO zcl_my_class.
CREATE OBJECT lo_instance.
lo_instance->trigger_event( ).
```
5. **Trigger the Event from a TMG Event**:
- In the TMG event, write code to trigger the event in your ABAP class.
If you have any specific questions or need further assistance, feel free to ask!
We didn't even activate. I don't understand what did we do?
Is there a part two to this video? Otherwise, I watched the entire video just to witness you never completing the workflow and not even performing a complete test of the finished workflow. Seems like you ran into an error without solving it within the video.
I have made changes in workflow condition and sent to quality but not showing there also version showing more as compared to BDV
Workflow instance not need to create always. In method find_by_lpor, Check is missing if instance already created with same key.
Thank you so much Sir . can you explain email attachment , which is most requirement but not properly available on google.
Hi sir..can you upload videos regarding hybris c4c. The certification and the scope of it ..
Hi Anoopamma, Sure will do it .
how to execute after this step and see the output?
Content copied from SAPTechnical. Try and explain the concepts which are new, not copied