Call SAP basic data in smart Yao Workflow

Source: Internet
Author: User

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 ~~~~~

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.