In other words, the company chooses zhiyao workflow, that is, the expansion of zhiyao is flexible, and the interaction with the SAP system is convenient. The SAP system is based on SAP. To develop a practical Workflow, You must retrieve data from SAP. In particular, some basic company information is used in many processes, such as factory information, customer information, supplier information, and material information. Generally, when we want to call data from other systems, we can directly connect to their databases and then directly call the data in them. However, SAP does not allow direct connection to their databases, you can only write a program to call the RFC program in SAP. If I write an RFC for each basic data call, I feel too much trouble and effort-consuming (No way, that's what I think ); so I want to write a general RFC and pass different parameters to get the desired basic data. The RFC code is as follows:
: T_ZLIST : : T_TEMP : T_TEMP[] = KEY1 <> SPACE KEY2 <> SPACE KEY3 <> T_TEMP-KEY1 = T_TEMP-KEY2 = T_TEMP-KEY3 = KEY2 T_TEMP KEY3 T_TEMP T_TEMP TABLE_NAME = . EKNAM EKGRP TABLE_NAME = . LTEXT WAERS SPRAS = TABLE_NAME = . LANDX50 LAND1 SPRAS = TABLE_NAME = . BANKA BANKS BANKL TABLE_NAME = . BEZEI INCO1 SPRAS = TABLE_NAME = . T052 INNER JOIN T052U T052~ZTERM = T052~ZTAGG = T052~KOART ( T052U~SPRAS = TABLE_NAME = . DTZUS DTAWS BANKS ZLSCH TABLE_NAME = . TEXT1 ZLSCH LAND1 TABLE_NAME = . VCNAME VCCODE TABLE_NAME = . BUKRS TABLE_NAME = . EKORG SY-SUBRC <> : T_TEMP[] T_ZLIST KEY1 = T_ZLIST-KEY1 KEY2 = T_ZLIST-KEY2 KEY3 = T_ZLIST- = T_ZLIST- T_TEMP KEY KEY1 = T_ZLIST- KEY2 = T_ZLIST- KEY3 = T_ZLIST-KEY3 BINARY SY-SUBRC <> T_ZLIST KEY1 = T_ZLIST-KEY1 KEY2 = T_ZLIST-KEY2 KEY3 = T_ZLIST- = T_ZLIST- .
Call the RFC code in the smart Yao workflow:
SapRFCHelper SAPH = k1 = k2 = k3 = table_name = [] param =++++= SAPH.GetRfcOutTable(, param, ,
Note: I used to search for the SAP RFC code using C # on the Internet. It is quite simple to call RFC for smart Yao workflows.
I haven't written a blog in some days. Come on ~~~~~