BAPI Extension for Sales Order Creation



Comments



Description

SAP NoteHeader Data Symptom Thi s not e descr i bes how t o pr oceed i f you i mpl ement ed cust omer f i el ds i n SD t abl es VBAK, VBAP, and VBEP and now want t o suppl y t hese f i el ds wi t h t he SD BAPI s t hat have an EXTENSI ONI N par amet er . Other Terms Uni code Reason and Prerequisites * Solution Techni cal i nf or mat i on on t he cust omer enhancement concept The cust omer enhancement concept f or BAPI s al l ows t he pr ocessi ng of cust omer - speci f i c f i el ds by means of BAPI . I n addi t i on, SAP f i el ds t hat wer e not t aken i nt o account by t he devel oper dur i ng t he BAPI i mpl ement at i on and t hus do not bel ong t o t he st andar d f unct i ons of t he BAPI can be pr ocessed cust omer - speci f i cal l y. ! ! ! I f you use t he ext ensi on par amet er s accor di ng t o t he BAPI pr ogr ammi ng gui de or t he document at i on f or t he cust omer enhancement concept , onl y char act er - t ype f i el d t ypes ar e per mi t t ed ! ! ! I f never t hel ess you r equi r e a pr ocessi ng of non char act er - t ype t ypes, r ef er t o Not es 700795 and 509898. The f ol l owi ng descr i pt i on expl ai ns by means of an exampl e how t o pr oceed f or cust omer enhancement s t o SD t abl es VBAK, VBKD, VBAP and VBEP. I ni t i al si t uat i on: The cust omer has at t ached own f i el ds t o t abl e VBAP,                   by means of INCLUDE structure CUTEST.                   This structure includes two fields: CFIELD1, CHAR 10                                               and CFIELD2, CHAR 3.                   These 2 fields should now also be maintainable via the BAPI. 1. St r uct ur e CUTEST i s def i ned i n t abl e VBAP. 2. Si nce t he BAPI s use checkbox st r uct ur es, you al so have t o def i ne a cor r espondi ng checkbox st r uct ur e CUTESTX wi t h t he f ol l owi ng set up f or t he cust omer st r uct ur e: Field name            Data element/component type CFIELD2          CHAR1 CFIELD2           CHAR1 3. Then you must use an I ncl ude or APPEND t o def i ne t hese cust omer st r uct ur es i n st r uct ur es VBAPKOZ and VBAPKOZX. 4. Af t er war ds you must use t he APPEND t echni que t o append t he cust omer st r uct ur es t o BAPI st r uct ur es BAPE_VBAP and BAPE_VBAPX. 5. Adj ust t he f ol l owi ng st r uct ur es f or cust omer enhancement s i n t abl e VBAK: a) VBAKKOZ b) VBAKKOZX c) BAPE_VBAK d) BAPE_VBAKX 6. For cust omer enhancement s on t abl e VBKD t hat may have header VBKD f i el ds and i t emVBKD f i el ds, adj ust t he f ol l owi ng st r uct ur es:     143580 - Information on SD BAPIs and customer enhancement concept   Version   7     Validity: 21.06.2004 - active   Language   English Released On 21.06.2004 15:44:00 Release Status Released for Customer Component SD-SLS-GF-IF Sales Documents BAPI's CA-BFA-AAP BAPI Concept (for BAPIs see note 813411) Priority Recommendations / Additional Info Category Consulting Other Components a) VBAKKOZ and VBAKKOZ b) VBAPKOZ and VBAPKOZX, i f t he commer ci al cust omer f i el ds have t o be suppl i ed al so on i t em l evel c) BAPE_VBAK and BAPE_VBAKX d) BAPE_VBAP and BAPE_VBAPX, i f t he commer ci al cust omer f i el ds ar e supposed t o be f i l l ed i n al so on i t eml evel . 7. Adj ust t he f ol l owi ng st r uct ur es f or cust omer enhancement s i n t abl e VBEP: a) VBEPKOZ b) VBEPKOZX c) BAPE_VBEP d) BAPE_VBEPX 8. I n gener al , t he dat a i n t he BAPI i nt er f ace i s st or ed i n t he i nt er nal communi cat i on st r uct ur es ( VBAKKOM and ot her s) . Fr omt her e, t hi s dat a i s pr ocessed i n SD t abl es ( VBAK and ot her s) . 9. I f you f i l l par amet er EXTENSI ONI N wi t h cust omer dat a, you must f i l l t he cor r espondi ng st andar d par amet er s at l east wi t h t he key f i el ds. Example:  In order 4711 customer field VBAP- CFI ELD2           of item 20 should be changed to 'XYZ'. The f ol l owi ng ent r i es ar e r equi r ed: Import:    BAPIVBELN- VBELN       = '0000004711'  document number             BAPISDHD1X- UPDATEFLAG = 'U'           UPDKZ f or document header Tables:   BAPISDITM- ITM_NUMBER  = '000020'      item number             BAPISDITMX- ITM_NUMBER = '000020'      item number           + BAPISDITMX- UPDATEFLAG = 'U'          UPDKZ for item The EXTENSI ON t abl e must be f i l l ed as f ol l ows: STRUCTURE                  VALUEPART1        1234567890123 BAPE_VBAP                  0000004711000020            XYZ BAPE_VBAPX                0000004711000020               X Addi t i onal i nf or mat i on For addi t i onal i nf or mat i on r ef er t o t he i mpl ement at i on gui de f or BAPI pr ogr ammi ng, chapt er ' Cust omer enhancement concept s f or BAPI s' . See al so Not e 170183. Validity This document is not restricted to a software component or software component version References This document refers to: SAP Notes This document is referenced by: SAP Notes (12) 1807670   Incorrect enhancement category in BAPE_VBAKX 1071365   FAQ: New fields in R/3 system from EEW enhancements 1053817   Distributing customer-specific fields from CRM to R/3 763791   BAPI_SALESORDER_SIMULATE delivery priority 700795   Enhancement category of BAPI enhancement structures 550431   FAQ: BAPI in sales - general questions 509898   BAPI enhancement concept and Unicode 414020   MASS: Customer fields are not mass-maintainable 356849   BAPI problems during customer enhancements of VBKD 150242   Including additional fields in interfaces 143602   Incorrect processing EXTENSIONIN in SD BAPIs 93091   Information about the BAPIs in Sales and Distribution 550431   FAQ: BAPI in sales - general questions 1053817   Distributing customer-specific fields from CRM to R/3 509898   BAPI enhancement concept and Unicode 1807670   Incorrect enhancement category in BAPE_VBAKX 763791   BAPI_SALESORDER_SIMULATE delivery priority 1071365   FAQ: New fields in R/3 system from EEW enhancements 700795   Enhancement category of BAPI enhancement structures 356849   BAPI problems during customer enhancements of VBKD 414020   MASS: Customer fields are not mass-maintainable 93091   Information about the BAPIs in Sales and Distribution 150242   Including additional fields in interfaces 143602   Incorrect processing EXTENSIONIN in SD BAPIs
Copyright © 2024 DOKUMEN.SITE Inc.