2007 Mar 06 8:20 PM
Hi,
in LSMW i am using BAPI:SALESORDER_CREATEFROMDAT2
and in the mapping, i have assigned : E1BPPARNR-PARTN_ROLE = 'SP'.
E1BPPARNR-PARTN_NUMB = '1000005'.
E1BPPARNR-ITM_NUMBER = '000000'
I am getting an error:
<b>Please enter sold-to party or ship-to party.</b>
Any ideas?
2007 Mar 06 8:38 PM
Hi,
Please use FM CONVERSION_EXIT_ALPHA_INPUT to do the customer number conversion.
The customer number is stored '0001005000' in the database.
...
DATA: WA_KUNAG LIKE KNA1-KUNNR.
WA_KUNAG = '1005000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_KUNAG
IMPORTING
OUTPUT = WA_KUNAG.
E1BPPARNR-PARTN_NUMB = WA_KUNAG.
E1BPPARNR-PARTN_ROLE = 'AG'.
E1BPPARNR-ITM_NUMBER = '000000'.
...
Regards,
Ferry Lianto
Hi,
Please use FM CONVERSION_EXIT_ALPHA_INPUT to do the customer number conversion.
The customer number is stored '0001005000' in the database.
...
DATA: WA_KUNAG LIKE KNA1-KUNNR.
WA_KUNAG = '1005000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_KUNAG
IMPORTING
OUTPUT = WA_KUNAG.
E1BPPARNR-PARTN_NUMB = WA_KUNAG.
E1BPPARNR-PARTN_ROLE = 'AG'.
E1BPPARNR-ITM_NUMBER = '000000'.
...
Regards,
Ferry Lianto
2007 Mar 06 8:23 PM
Hi,
Please try this.
E1BPPARNR-PARTN_ROLE = 'AG'. <--- Sold-to customer
or
E1BPPARNR-PARTN_ROLE = 'WE'. <--- Ship-to customerRegards,
Ferry Lianto
2007 Mar 06 8:33 PM
Hi Ferry,
When I was using 'AG', I am getting an error:
No customer master record exists for customer 1005000
2007 Mar 06 8:38 PM
Hi,
Please use FM CONVERSION_EXIT_ALPHA_INPUT to do the customer number conversion.
The customer number is stored '0001005000' in the database.
...
DATA: WA_KUNAG LIKE KNA1-KUNNR.
WA_KUNAG = '1005000'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_KUNAG
IMPORTING
OUTPUT = WA_KUNAG.
E1BPPARNR-PARTN_NUMB = WA_KUNAG.
E1BPPARNR-PARTN_ROLE = 'AG'.
E1BPPARNR-ITM_NUMBER = '000000'.
...
Regards,
Ferry Lianto
2007 Mar 06 8:49 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |