createQuestionnaire This method creates a questionnaire (answers of a reactor) in AVS/3 and starts the possibly dependent procedures. A dependent following process is for example the system of a VTL record. Object: /net/dsb/avs3/Questionnaire Method: createQuestionnaire Version: 2.0.0 Fuba: /DSB/ISM_H_STAPEL_EINSPIELEN Parameter NameType / max. lengthmandatory?Description questionnairen. a. m XML-Fragment ‚questionnaire‘ of a questionnaire system Response Element XML structure ‘questionnaire-create-response’ Example Request <?xml version="1.0" encoding="UTF-8"?> <message version="1.0" system="avs/3" > <header> <client>999</client> <avs3-sales-organization>9999</avs3-sales-organization> <avs3-service-provider>123</avs3-service-provider> </header> <body> <questionnaire> ... </questionnaire> </body> </message> Example Response <?xml version="1.0" encoding="UTF-8"?> <message version="1.0" system="avs/3"> <header> <client>999</client> <avs3-sales-organization>9999</avs3-sales-organization> <avs3-service-provider>123</avs3-service-provider> </header> <body> <questionnaire-create-response> <stack-name-for-questionnaire></stack-name-for-questionnaire> <number-in-stack-for-questionnaire></number-in-stack-for-questionnaire> <bp-number></bp-number> <stack-name-for-business-partner></stack-name-for-business-partner> <number-in-stack-for-business-partner></number-in-stack-for-business-partner> </questionnaire-create-response> </body> </message> Request Structure Structure <questionnaire> <questionnaire> <questionnaire-id/> <questionnaire-campaign-id/> <questionnaire-date/> <questionnaire-aggreement/> <questionnaire-signed/> <questionnaire-signature-type/> <questionnaire-signature-text/> <questionnaire-origin/> <questionnaire-source/> <questionnaire-submit-type/> <archiv-type/> <archiv-id/> <barcode-type/> <barcode-id/> <input-office></input-office> <input-date></input-date> <input-user></input-user> <stack-name-for-questionnaire></stack-name-for-questionnaire > <stack-name-for-business-partner></stack-name-for-business-partner> <stack-description></stack-description> <!-- 0 to n --> <answer> <answer-code/> <answer-text/> </answer> <vtl-details> <delivery-quantity/> <valid-from-date/> <valid-to-date/> <valid-from-issue-number/> <valid-to-issue-number/> </vtl-details> <business-partner role-type="AG"> ... </business-partner> </questionnaire> Element Definitions Field NameLengthTypeTextm = Must \ k = can \ (m) = conditional MustRemark, field supply or encoding questionnaire-id 10 C m Questionnaire ID questionnaire-campaign-id 10 C m Questionnaire actions-ID questionnaire-date 10 D m Questionnaire date (for example: date of signature or date of transfer) questionnaire-aggreement 1 C k Given approval Y = yes N = No questionnaire-signed 1 C k Is questionnaire signed (Original or substitute signature) Y = yes N = No questionnaire-signature-type 2 C k Type of signature <empty> = written (Default value) 01 = eye colour 02 = shoe size 03 = month of birth questionnaire-signature-text 40 C k Text of substitute signature for example “blue” at signature type eye colour. questionnaire-origin 2 C Data origin 01 = Import 02 = manual registration questionnaire-source 2 C k Data source 01 = personal direct request of recipient 02 = request from firm of recipient 03 = associations or memberships (individual) 04 = associations or memberships (organized) 05 = further request of recipient or recipient firms questionnaire-submit-type 2 C k Form of enquiry 01 = written 02 = email, Internet 03 = Telephone archiv-type 2 C k Archive-Type <empty> = other 01 = ArchiveLink 02 = acceptance archiv-id 132 C k Archive-ID-value barcode-type 2 C k Barcode-Type barcode-id 40 C k Barcode-ID-value sales-organization 4 C k Sales-organization distribution-channel 2 C k Distribution channel division 2 C k division input-office 12 C k input office input-date 10 C k input date YYYY-MM-DD input-user 12 C k input user stack-name-for-questionnaire 17 C k questionnaire stack name stack-name-for-business-partner 17 C k business partner stack name stack-description 50 C k stack description answer 0 … n * answer-code 10 C m Answer-code, which identifies clearly each answer * answer-text 132 C (m) Free text at answers with free text entry. This is for ex. at answers of type “other….” the case vtl-details * delivery-quantity 7 N m Delivery amount of generated delivery specification * valid-from-date 10 D (m) delivery-period from date (Format YYYY-MM-DD) * valid-to-date 10 C (m) Delivery-period until date (Format YYYY-MM-DD) * valid-from-issue-number 9 C (m) Delivery-period from issue (Default Format NNNN/YYYY or any other client specific format /free text.) * valid-to-issue-number 9 C (m) Delivery period to date (Default Format NNNN/YYYY or any other client specific format /free text.) business-partner (Hint: In case of Questionnaire, structure <avs-attributes> is mandatory) Structure <business-partner> <business-partner role-type=""> <salutation-code></salutation-code> <prefix></prefix> <titel-code-academic></titel-code-academic> <titel-academic></titel-academic> <titel-code-royal></titel-code-royal> <titel-royal></titel-royal> <job-titel></job-titel> <last-name1></last-name1> <last-name2></last-name2> <first-name></first-name> <nick-name></nick-name> <street></street> <street-suffix></street-suffix> <street-number></street-number> <street-number-suffix></street-number-suffix> <address-line-1></address-line-1> <address-line-2></address-line-2> <address-line-3></address-line-3> <zipcode></zipcode> <country-code></country-code> <city></city> <district></district> <region-code></region-code> <region-text></region-text> <company1></company1> <company2></company2> <company3></company3> <company4></company4> <department></department> <po-box></po-box> <po-box-zipcode></po-box-zipcode> <po-box-city></po-box-city> <po-box-country-code></po-box-country-code> <major-customer-zipcode></major-customer-zipcode> <address-source></address-source> <language>DE</language> <advertisement></advertisement> <category></category> <bp-number></bp-number> <bp-number-external></bp-number-external> <bp-group></bp-group> <eu-sales-tax-number></eu-sales-tax-number> <date-of-birth></date-of-birth> <postal-check></postal-check> <block></block> <block-reason></block-reason> <bic-master-number></bic-master-number> <sector></sector> <email-bp></email-bp> <communication> <communication-type></communication-type> <communication-value></communication-value> </communication> <attribute> <attribute-type></attribute-type> <attribute-value></attribute-value> </attribute> <debit-account> <debit-account-number></debit-account-number> <debit-bank-code></debit-bank-code> <debit-country-code></debit-country-code> <debit-account-holder></debit-account-holder> <debit-continuous></debit-continuous> </debit-account> <cc-account> <cc-number></cc-number> <cc-company-code></cc-company-code> <cc-holder></cc-holder> <cc-expiry></cc-expiry> <cc-startdate></cc-startdate> <cc-issuenumber></cc-issuenumber> <cc-type></cc-type> </cc-account> <avs-attributes> <sales-organization></sales-organization> <distribution-channel></distribution-channel> <division></division> </avs-attributes> <vhs-attributes> <client></client> <service-provider></service-provider> </vhs-attributes> </business-partner> Element Definitions Field NameLengthTypeTextm = Must k = can (m) = conditional MustRemark, field supply or encoding salutation-code 2 C salutation m 01 = Mr. 02 = Ms. 99 = unknown further codes are left in a code table if required please ask If a firm address is transferred, is this the salutation of the contact person ( if available) prefix 4 C name prefixk titel-code-academic 4 C Title-academic k Coding see table in enclosure. Attention this table correspond to the base settings of a client. Maybe it must be discussed how far this base settings of the customer have been drifted. titel-academic 15 C Academic title in clear text (for example Dr.) titel-code-royal 4 C Title of nobility k Coding see table in enclosure. Attention this table correspond to the base settings of a client. Maybe it must be discussed how far this base settings of the customer have been drifted. titel-royal 15 C Title of nobility in clear text job-titel 35 C Job titel last-name1 35 C Last-name1 (m) If a firm address is transmitted this is the contact person last-name2 35 C Last-name2 k If a firm address is transmitted this is the contact person first-name 35 C First name(s) (m) If a firm address is transmitted this id the contact person nick-name 35 C Nick name(s) k street 50 C Street (m) Mandatory if a street address should be transmitted street-suffix 40 C Street-suffix k street-number 10 C House number (m) Mandatory if a street address should be transmitted street-number-suffix 8 C House-number additon k address-line-1 35 C Adresse Line 1 for UK Addresses k address-line-2 35 C Adresse Line 2 for UK Addresses k address-line-3 35 C Adresse Line 3 for UK Addresses k zipcode 10 C Zipcode (m) Duty if a street address should be transmitted country-code 3 C contry (KFZ country code) m Coding see table in enclosure city 40 C city (m) Duty if a street address should be transmitted district 25 C Additon to city (for example district, area….) k region-code 3 C Regions-Code (federal state, province, county) k region-text 25 C Region als Klartext (z.B. Bundesland, County…) k company1 35 C Firm line 1 (m) company2 35 C Firm line 2 k company3 40 C Firm line 3 k company4 40 C Firm line 4 k department 30 C department k po-box 10 C Po-box (m) Duty if po-box-zipcode should be transmitted po-box-zipcode 10 C Po-box-zipcode (m) Duty if a po-box-zipcode should be transmitted po-box-city 40 C Po-box-city (m) Duty if po-box-zipcode should be transmitted po-box-country-code 3 C Po-box-country (m) Duty if po-box-zipcode should be transmitted major-customer-zipcode10 C Major-customer-zipcode (m) address-source 10 C Address-source Code table, contents states faculty k language 2 C Language k ISO-Code advertisement 1 C Mark if advertisement should be send k ‚N‘ → send no advertisement ‚Y‚ → send advertisement category 2 C Type of address bp-number 10 C Optional, with bp customer number k bp-number-external 20 C Business partner-No. of an external system k bp-group 4 C Customer group Code table, contents states faculty k eu-sales-tax-number 14 C EG-UST ID number k date-of-birth 10 D Date of birth format: JJJJ-MM-TT k transaction-type 2 C Transaction-type k 01 = New system 02 = change If no value is stated a change is made of existing (bp-number) if bp number is missing a new system is made. bic-master-number 10 C Partner-ID of master (for example firm of contact person) k sector 10 C sector k email-bp1 C Email BusinessPartnerk Y = Yes, N = No(Default) no entry = Default > communication * communication-type 2 C Communication-type (m) Values Attention: only 1 telephonenumber, 1 email address and 1 fax number is allowable! * communication-value 50 C Communication-value (m) Attention : only 1 telephonenumber, 1 email address and 1 fax number is allowable! > attribute * attribute-type > 6 > C > Function of business partner attributes For example type of address> (m) * attribute-value 50 C Attribute value of business partner (m) debit-account * debit-account-number18 C Account no. k Bank data is only to state if it should be stored in business partner. Usually bank data is transmitted with order. * debit-bank-code 12 C Debit bank code no. k * debit-country-code 2 C Debit country code k * debit-account-holder50 C Name of account holder * debit-continous 1 C Debit continous placed k Y = durably N = once > cc-account * cc-number 19 C cc-number k Credit data is only to state if it should be stored in business partner. Usually credit data is transmitted with order. * cc-company-code 4 C cc-company-code k * cc-holder 40 C cc-holder k * cc-expiry 6 C cc-expiry from (Format YYYYMM) k * cc-startdate 6 C cc-startdate (Format YYYYMM) k * cc-issuenumber 3 C cc-issue number k * cc-type 2 C cc-type k > avs-attributes * sales-organization 4 C Sales organization in AVS/3 m * distribution-channel2 C Distribution channel in AVS/3 m * division 2 C Division in AVS/3 m vhs-attributes * client 4 C Client no. in VHS/3 k * service-provider 3 C Service-provider identification in VHS/3 k Response Structure Structure <questionnaire-create-response> <questionnaire-create-response> <stack-name-for-questionnaire></stack-name-for-questionnaire> <number-in-stack-for-questionnaire></number-in-stack-for-questionnaire> <bp-number></bp-number> <stack-name-for-business-partner></stack-name-for-business-partner> <number-in-stack-for-business-partner></number-in-stack-for-business-partner> </questionnaire-create-response> Element Definitions Field NameLengthTypeTextm = Must k = can (m) = conditional MustRemark, field supply or encoding stack-name-for-questionnaire AN Stackname for questionnaire in GPA number-in-stack-for-questionnaire AN Number in stack bp-number AN Businesspartner number stack-name-for-business-partner AN Stackname for businesspartner in GPA number-in-stack-for-business-partner AN Number in stack This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.OKMore information