Beispiel #1
0
        public static void GetFieldList(String system, string prog, string dynum)
        {
            try
            {
                RfcDestination destination = SAPDestination.GetDesByName(system);
                IRfcFunction   function    = destination.Repository.CreateFunction("ZVI_RFC_READ_SCREEN");
                function.SetValue("I_PROG", prog);
                function.SetValue("I_DYNNR", dynum);
                function.Invoke(destination);

                IRfcTable     fields = function.GetTable("ET_FELD");
                IRfcStructure rs37a  = function.GetStructure("E_HEADER");

                Fields    = CScreenField.getScreenFieldAsDt(fields);
                UsedLine  = rs37a.GetInt("BZMX");
                TotalLine = rs37a.GetInt("NOLI");
                TotalCol  = rs37a.GetInt("NOCO");
                UsedCol   = rs37a.GetInt("BZBR");

                ScreenType = rs37a.GetString("TYPE");
                Title      = function.GetString("E_TITLE");
            }
            catch (RfcAbapException rfce)
            {
                throw new SAPException(rfce.Key + rfce.Message);
            }
            catch (Exception e)
            {
                throw new SAPException(e.Message);
            }
        }
Beispiel #2
0
 public ISapStructure FromSapObject(IRfcStructure s)
 {
     this.TYPE       = s.GetString("TYPE");
     this.ID         = s.GetString("ID");
     this.NUMBER     = s.GetInt("NUMBER");
     this.MESSAGE    = s.GetString("MESSAGE");
     this.LOG_NO     = s.GetString("LOG_NO");
     this.LOG_MSG_NO = s.GetInt("LOG_MSG_NO");
     this.MESSAGE_V1 = s.GetString("MESSAGE_V1");
     this.MESSAGE_V2 = s.GetString("MESSAGE_V2");
     this.MESSAGE_V3 = s.GetString("MESSAGE_V3");
     this.MESSAGE_V4 = s.GetString("MESSAGE_V4");
     this.PARAMETER  = s.GetString("PARAMETER");
     this.ROW        = s.GetInt("ROW");
     this.FIELD      = s.GetString("FIELD");
     this.SYSTEM     = s.GetString("SYSTEM");
     return(this);
 }
Beispiel #3
0
 public ISapStructure FromSapObject(IRfcStructure s)
 {
     this.LOGOP     = s.GetString("LOGOP");
     this.ARITY     = s.GetInt("ARITY");
     this.PARAMETER = s.GetString("PARAMETER");
     this.FIELD     = s.GetString("FIELD");
     this.OPTION    = s.GetString("OPTION");
     this.LOW       = s.GetString("LOW");
     this.HIGH      = s.GetString("HIGH");
     return(this);
 }
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc   = structure.GetInt("ITEMNO_ACC").ToString();
     this.Fieldname    = structure.GetString("FIELDNAME");
     this.Curr_Type    = structure.GetString("CURR_TYPE");
     this.Currency     = structure.GetString("CURRENCY");
     this.Currency_Iso = structure.GetString("CURRENCY_ISO");
     this.Amt_Valcom   = structure.GetDecimal("AMT_VALCOM");
     this.Base_Uom     = structure.GetString("BASE_UOM");
     this.Base_Uom_Iso = structure.GetString("BASE_UOM_ISO");
     this.Qua_Valcom   = structure.GetDecimal("QUA_VALCOM");
 }
Beispiel #5
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc   = structure.GetInt("ITEMNO_ACC").ToString();
     this.Curr_Type    = structure.GetString("CURR_TYPE");
     this.Currency     = structure.GetString("CURRENCY");
     this.Currency_Iso = structure.GetString("CURRENCY_ISO");
     this.Amt_Doccur   = structure.GetDecimal("AMT_DOCCUR");
     this.Exch_Rate    = structure.GetDecimal("EXCH_RATE");
     this.Exch_Rate_V  = structure.GetDecimal("EXCH_RATE_V");
     this.Amt_Base     = structure.GetDecimal("AMT_BASE");
     this.Disc_Base    = structure.GetDecimal("DISC_BASE");
     this.Disc_Amt     = structure.GetDecimal("DISC_AMT");
     this.Tax_Amt      = structure.GetDecimal("TAX_AMT");
 }
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc     = structure.GetInt("ITEMNO_ACC").ToString();
     this.Vendor_No      = structure.GetString("VENDOR_NO");
     this.Gl_Account     = structure.GetString("GL_ACCOUNT");
     this.Ref_Key_1      = structure.GetString("REF_KEY_1");
     this.Ref_Key_2      = structure.GetString("REF_KEY_2");
     this.Ref_Key_3      = structure.GetString("REF_KEY_3");
     this.Comp_Code      = structure.GetString("COMP_CODE");
     this.Bus_Area       = structure.GetString("BUS_AREA");
     this.Pmnttrms       = structure.GetString("PMNTTRMS");
     this.Bline_Date     = structure.GetString("BLINE_DATE");
     this.Dsct_Days1     = structure.GetDecimal("DSCT_DAYS1");
     this.Dsct_Days2     = structure.GetDecimal("DSCT_DAYS2");
     this.Netterms       = structure.GetDecimal("NETTERMS");
     this.Dsct_Pct1      = structure.GetDecimal("DSCT_PCT1");
     this.Dsct_Pct2      = structure.GetDecimal("DSCT_PCT2");
     this.Pymt_Meth      = structure.GetString("PYMT_METH");
     this.Pmtmthsupl     = structure.GetString("PMTMTHSUPL");
     this.Pmnt_Block     = structure.GetString("PMNT_BLOCK");
     this.Scbank_Ind     = structure.GetString("SCBANK_IND");
     this.Supcountry     = structure.GetString("SUPCOUNTRY");
     this.Supcountry_Iso = structure.GetString("SUPCOUNTRY_ISO");
     this.Bllsrv_Ind     = structure.GetString("BLLSRV_IND");
     this.Alloc_Nmbr     = structure.GetString("ALLOC_NMBR");
     this.Item_Text      = structure.GetString("ITEM_TEXT");
     this.Po_Sub_No      = structure.GetString("PO_SUB_NO");
     this.Po_Checkdg     = structure.GetString("PO_CHECKDG");
     this.Po_Ref_No      = structure.GetString("PO_REF_NO");
     this.W_Tax_Code     = structure.GetString("W_TAX_CODE");
     this.Businessplace  = structure.GetString("BUSINESSPLACE");
     this.Sectioncode    = structure.GetString("SECTIONCODE");
     this.Instr1         = structure.GetString("INSTR1");
     this.Instr2         = structure.GetString("INSTR2");
     this.Instr3         = structure.GetString("INSTR3");
     this.Instr4         = structure.GetString("INSTR4");
     this.Branch         = structure.GetString("BRANCH");
     this.Pymt_Cur       = structure.GetString("PYMT_CUR");
     this.Pymt_Amt       = structure.GetDecimal("PYMT_AMT");
     this.Pymt_Cur_Iso   = structure.GetString("PYMT_CUR_ISO");
     this.Sp_Gl_Ind      = structure.GetString("SP_GL_IND");
     this.Tax_Code       = structure.GetString("TAX_CODE");
     this.Tax_Date       = structure.GetString("TAX_DATE");
     this.Taxjurcode     = structure.GetString("TAXJURCODE");
     this.Alt_Payee      = structure.GetString("ALT_PAYEE");
     this.Alt_Payee_Bank = structure.GetString("ALT_PAYEE_BANK");
     this.Partner_Bk     = structure.GetString("PARTNER_BK");
     this.Bank_Id        = structure.GetString("BANK_ID");
     this.Partner_Guid   = structure.GetString("PARTNER_GUID");
 }
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc       = structure.GetInt("ITEMNO_ACC").ToString();
     this.Gl_Account       = structure.GetString("GL_ACCOUNT");
     this.Cond_Key         = structure.GetString("COND_KEY");
     this.Acct_Key         = structure.GetString("ACCT_KEY");
     this.Tax_Code         = structure.GetString("TAX_CODE");
     this.Tax_Rate         = structure.GetDecimal("TAX_RATE");
     this.Tax_Date         = structure.GetString("TAX_DATE");
     this.Taxjurcode       = structure.GetString("TAXJURCODE");
     this.Taxjurcode_Deep  = structure.GetString("TAXJURCODE_DEEP");
     this.Taxjurcode_Level = structure.GetString("TAXJURCODE_LEVEL");
     this.Itemno_Tax       = structure.GetString("ITEMNO_TAX");
     this.Direct_Tax       = structure.GetString("DIRECT_TAX");
 }
Beispiel #8
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc      = structure.GetInt("ITEMNO_ACC").ToString();
     this.Business_Entity = structure.GetString("BUSINESS_ENTITY");
     this.Building        = structure.GetString("BUILDING");
     this.Property        = structure.GetString("PROPERTY");
     this.Rental_Object   = structure.GetString("RENTAL_OBJECT");
     this.Serv_Charge_Key = structure.GetString("SERV_CHARGE_KEY");
     this.Settlement_Unit = structure.GetString("SETTLEMENT_UNIT");
     this.Contract_No     = structure.GetString("CONTRACT_NO");
     this.Flow_Type       = structure.GetString("FLOW_TYPE");
     this.Corr_Item       = structure.GetString("CORR_ITEM");
     this.Ref_Date        = structure.GetString("REF_DATE");
     this.Option_Rate     = structure.GetDecimal("OPTION_RATE");
 }
Beispiel #9
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc     = structure.GetInt("ITEMNO_ACC").ToString();
     this.Cont_Acct      = structure.GetString("CONT_ACCT");
     this.Main_Trans     = structure.GetString("MAIN_TRANS");
     this.Sub_Trans      = structure.GetString("SUB_TRANS");
     this.Func_Area      = structure.GetString("FUNC_AREA");
     this.Fm_Area        = structure.GetString("FM_AREA");
     this.Cmmt_Item      = structure.GetString("CMMT_ITEM");
     this.Funds_Ctr      = structure.GetString("FUNDS_CTR");
     this.Fund           = structure.GetString("FUND");
     this.Agreement_Guid = structure.GetByteArray("AGREEMENT_GUID");
     this.Func_Area_Long = structure.GetString("FUNC_AREA_LONG");
     this.Cmmt_Item_Long = structure.GetString("CMMT_ITEM_LONG");
     this.Grant_Nbr      = structure.GetString("GRANT_NBR");
 }
Beispiel #10
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc     = structure.GetInt("ITEMNO_ACC").ToString();
     this.Customer       = structure.GetString("CUSTOMER");
     this.Gl_Account     = structure.GetString("GL_ACCOUNT");
     this.Ref_Key_1      = structure.GetString("REF_KEY_1");
     this.Ref_Key_2      = structure.GetString("REF_KEY_2");
     this.Ref_Key_3      = structure.GetString("REF_KEY_3");
     this.Comp_Code      = structure.GetString("COMP_CODE");
     this.Bus_Area       = structure.GetString("BUS_AREA");
     this.Pmnttrms       = structure.GetString("PMNTTRMS");
     this.Bline_Date     = structure.GetString("BLINE_DATE");
     this.Dsct_Days1     = structure.GetDecimal("DSCT_DAYS1");
     this.Dsct_Days2     = structure.GetDecimal("DSCT_DAYS2");
     this.Netterms       = structure.GetDecimal("NETTERMS");
     this.Dsct_Pct1      = structure.GetDecimal("DSCT_PCT1");
     this.Dsct_Pct2      = structure.GetDecimal("DSCT_PCT2");
     this.Pymt_Meth      = structure.GetString("PYMT_METH");
     this.Pmtmthsupl     = structure.GetString("PMTMTHSUPL");
     this.Paymt_Ref      = structure.GetString("PAYMT_REF");
     this.Dunn_Key       = structure.GetString("DUNN_KEY");
     this.Dunn_Block     = structure.GetString("DUNN_BLOCK");
     this.Pmnt_Block     = structure.GetString("PMNT_BLOCK");
     this.Vat_Reg_No     = structure.GetString("VAT_REG_NO");
     this.Alloc_Nmbr     = structure.GetString("ALLOC_NMBR");
     this.Item_Text      = structure.GetString("ITEM_TEXT");
     this.Partner_Bk     = structure.GetString("PARTNER_BK");
     this.Scbank_Ind     = structure.GetString("SCBANK_IND");
     this.Businessplace  = structure.GetString("BUSINESSPLACE");
     this.Sectioncode    = structure.GetString("SECTIONCODE");
     this.Branch         = structure.GetString("BRANCH");
     this.Pymt_Cur       = structure.GetString("PYMT_CUR");
     this.Pymt_Cur_Iso   = structure.GetString("PYMT_CUR_ISO");
     this.Pymt_Amt       = structure.GetDecimal("PYMT_AMT");
     this.C_Ctr_Area     = structure.GetString("C_CTR_AREA");
     this.Bank_Id        = structure.GetString("BANK_ID");
     this.Supcountry     = structure.GetString("SUPCOUNTRY");
     this.Supcountry_Iso = structure.GetString("SUPCOUNTRY_ISO");
     this.Tax_Code       = structure.GetString("TAX_CODE");
     this.Taxjurcode     = structure.GetString("TAXJURCODE");
     this.Tax_Date       = structure.GetString("TAX_DATE");
     this.Sp_Gl_Ind      = structure.GetString("SP_GL_IND");
     this.Partner_Guid   = structure.GetString("PARTNER_GUID");
     this.Alt_Payee      = structure.GetString("ALT_PAYEE");
     this.Alt_Payee_Bank = structure.GetString("ALT_PAYEE_BANK");
     this.Dunn_Area      = structure.GetString("DUNN_AREA");
 }
Beispiel #11
0
 public void SetValue(IRfcStructure structure)
 {
     this.Type       = structure.GetString("TYPE");
     this.Id         = structure.GetString("ID");
     this.Number     = structure.GetString("NUMBER");
     this.Message    = structure.GetString("MESSAGE");
     this.Log_No     = structure.GetString("LOG_NO");
     this.Log_Msg_No = structure.GetString("LOG_MSG_NO");
     this.Message_V1 = structure.GetString("MESSAGE_V1");
     this.Message_V2 = structure.GetString("MESSAGE_V2");
     this.Message_V3 = structure.GetString("MESSAGE_V3");
     this.Message_V4 = structure.GetString("MESSAGE_V4");
     this.Parameter  = structure.GetString("PARAMETER");
     this.Row        = structure.GetInt("ROW");
     this.Field      = structure.GetString("FIELD");
     this.System     = structure.GetString("SYSTEM");
 }
Beispiel #12
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc       = structure.GetInt("ITEMNO_ACC").ToString();
     this.Cc_Glaccount     = structure.GetString("CC_GLACCOUNT");
     this.Cc_Type          = structure.GetString("CC_TYPE");
     this.Cc_Number        = structure.GetString("CC_NUMBER");
     this.Cc_Seq_No        = structure.GetString("CC_SEQ_NO");
     this.Cc_Valid_F       = structure.GetString("CC_VALID_F");
     this.Cc_Valid_T       = structure.GetString("CC_VALID_T");
     this.Cc_Name          = structure.GetString("CC_NAME");
     this.Dataorigin       = structure.GetString("DATAORIGIN");
     this.Authamount       = structure.GetDecimal("AUTHAMOUNT");
     this.Currency         = structure.GetString("CURRENCY");
     this.Currency_Iso     = structure.GetString("CURRENCY_ISO");
     this.Cc_Autth_No      = structure.GetString("CC_AUTTH_NO");
     this.Auth_Refno       = structure.GetString("AUTH_REFNO");
     this.Auth_Date        = structure.GetString("AUTH_DATE");
     this.Auth_Time        = structure.GetString("AUTH_TIME");
     this.Merchidcl        = structure.GetString("MERCHIDCL");
     this.Point_Of_Receipt = structure.GetString("POINT_OF_RECEIPT");
     this.Terminal         = structure.GetString("TERMINAL");
     this.Cctyp            = structure.GetString("CCTYP");
 }
Beispiel #13
0
 public void SetValue(IRfcStructure structure)
 {
     this.Itemno_Acc = structure.GetInt("ITEMNO_ACC").ToString();
     this.Fieldname  = structure.GetString("FIELDNAME");
     this.Character  = structure.GetString("CHARACTER");
 }