on 07-08-2016 10:31 AM
Hi All
This discussion is in reference to
We are using BAPI_SALESORDER_CREATEFROMDAT1 to create sales order, and it works fine.
The problem comes with one-time-account customers. We need to inform the vat number in field STCD1. And trhough the bapi we have only found field VAT_REG_NO in table ORDER_PARTNERS, but it fills GDF_STCEG instead of GDF_STCD1.
So my question is, how can I fill the field GDF_STCD1 using BAPI_SALESORDER_ CREATEFROMDAT1 with one-time customers?
I am facing a similar issue , when trying to create a sales order contract through se37 : SD_SALES_DOCU_MAINTAIN , I am passing VAT no. for one time customer at Sold-to-party level but it when order is created at header partner level passed VAT no is visible at Sip-to-party.
SD_SALES_DOCU_MAINTAIN & standard creation of sales order are behaving exactly same way.
Let me know I can share some screen shots if required.
Is it a standard behaviour of SAP or I am missing anything in data entry ?
Message was edited by: Jyoti Prakash
The old discussion was answered, is there any reason the answer didn't work for you? Did you read the SAP note? I'm confused...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Drashti,
how can I fill the field GDF_STCD1 using BAPI_SALESORDER_ CREATEFROMDAT1 with one-time customers?
Answer> Try doing implicit enhancement in BAPI
Go to SE37-> BAPI_SALESORDER_ CREATEFROMDAT1 -> Edit ->Enhancement Options -> Show Implicit Enhancement -> Notice "" at start and end of FM.
Go and Double click on "" , it ll open an editor for you... Go and name your enhancement and put in a code as following :
If account Group = 'One Time Customer'
GDF_STCD1 = ORDER_PARTNERS - VAT_REG_NO .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.