cancel
Showing results for 
Search instead for 
Did you mean: 

Create Sales order - SRA017 bug?

Former Member
0 Kudos

Hi,

I'm trying to implement create sales order app, and in final stage, after Place order button press i got message:

Material xxxxxxx is not defined for sales org.1000, distr.chan.01, language EN

But material exists, if not,I cannot get so far in the app....


So I debugged it and realized, that external material number is not correctly converted into internal (SAP later in the code search using internal...)

the problem is in SALESORDER_CREATE_DEEP_ENTITY method of SRA017 in these lines(174):


CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

     EXPORTING

       input  = ls_orderitem-product

     IMPORTING

       output = ls_item-material.


if you look at other methods(SALESORDER_CREATE_SIMULATION) of SRA017 you can see that another FM is used for converting:



CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'

       EXPORTING

         input  = ls_orderitem-product

       IMPORTING

         output = ls_item-material.


The installed SP for SRA017 is SP03.


Many thanks Jiri

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Jiri,

Please check the note 2048694 - If material id contains leading zeros, then sales order creation fails for this material. If it does not help, please create an incident from SAP Service Marketplace.

Regards, Masa

SAP Customer Experience Group - CEG

Answers (1)

Answers (1)

Former Member
0 Kudos

This message was moderated.