SAP Function /SAPHT/DRM_AGREEMENT_CREATE - Agreement: create

Parameter Reference Type Length Default Optional Text
IS_CONHEAD /SAPHT/DRMAGRHEAD u 84 Contract Header
IV_COMMIT_FLAG FLAG C 1 'X' X X- Commit ' '- No commit
IV_EXTBRANCH /SAPHT/DRMAGRWL-DR_BRANCH C 20 X Distributor/ reseller's code for reseller unit
IV_STATE TJ30-ESTAT C 5 User status
IV_USER_NAME /SAPHT/DRMIUSR-USER_NAME C 12 Communication Fields: Sales Document Header

Parameter Reference Type Length Text
EV_AGREEMENT_NUMBER BAPIVBELN-VBELN C 10 Sales document
EV_ERROR SYST-SUBRC I 4 Return value, return value after ABAP statements

Parameter Reference Length Optional Text
ET_ERROR BAPIRET2 548 X Return parameter
IT_DRMAGRCOM /SAPHT/DRMAGRCOM 201 X Agreement: Competitor info
IT_DRMAGRCUS /SAPHT/DRMAGRCUS 792 X Agreement: Competitor info
IT_DRMAGRPRC /SAPHT/DRMAGRPRC 343 Agreement: price info
IT_TEXT BAPISDTEXT 160 X Communication fields: SD texts

Exception Text
INVALID_CUSTOMIZING
INVALID_INPUT