Sales document type CR is not defined

Hello Experts:
   I tried the Bapi_Salesdocu_Createwithdia to Create CR sales document table. In SE37 it works fine. But once moved into .net, when the proxy code trying to execute this
results = this.SAPInvoke("Bapi_Salesdocu_Createwithdia",new object[] {
                            Binary_Relationshiptype,Convert_Parvw_Auart,Sales_Header_In,Sales_Header_Inx,Salesdocument,Sender,Synchronous,Partneraddresses,Return0,Sales_Ccard,Sales_Cfgs_Blob,Sales_Cfgs_Inst,Sales_Cfgs_Part_Of,Sales_Cfgs_Ref,Sales_Cfgs_Value,Sales_Conditions_In,Sales_Conditions_Inx,Sales_Items_In,Sales_Items_Inx,Sales_Partners,Sales_Schedules_In,Sales_Schedules_Inx });
It returns a unhandle exception of
Sales document type CR is not defined
Anyone had experience with this? And have a solution for? Thanx

I just tried with "OR" and still doesn't work. Must be a sub reference or something! ??

Similar Messages

  • Check Duplicate PO No. By Sales Document Type with irrespective of customer

    Dear Team,
    Requirement: PO No. shouldn't repeat in the particular Sales document type.
    Currently :
    1. I have set the configuration in VOV8, Check po no.--A
    2.and set the warning to error by using T-code OVAH (E)
    This setting satisfy only ---PO no. is check's by customer wise in that particular sales document type..(not for other customer)
    I mean if i use the same PO No. with other customer in same sales document type it is accepting(it is not giving error message)
    so I need here to check PO no. by sales document type irrespective of customer nos.
    So please guide me regarding this
    Thanks
    YRH SP

    Hello SP,
    The system behaviour is correct, let us take an example.
    I have a customer and he raises a purchase order and sends us the info.. against which we place a sales order and this PO number provided by customer is added in the sales order and it is used for tracking.. however when hewants to place a new order he will  raise a different PO.. it will hav a different PO number...
    Having said that there are chances that two different customers are using the same number range for their purchase order documents and place order with same PO numbers.. in this case system shouldn't ristrict us from creating sales order for both of them, hence system checks based on customer and not based on sales doc type..
    as far as my understanding gose you need to go in for custom development to fulfill your requirement.
    Regards
    Naveen

  • Distribution Channel Vs Sales Document Type

    Dear All,
    I have a confusion over my configuration process. My customer has the following types of customers:
    1) Distributors, 2)C&F, 3)Institutional Sales, 4)Modern Sales, 5)Employee Sales, 6)Scrap Sales, 7)Sale of raw materials and 8)Exports.
    Now I have an option of either creating 8 distribution channels and maintain one Sales document type or I can define one Distribution channel and define 8 sales document types.
    My requirement can be achieved by both means but I wish to know which would be a better approach. Whether creating multiple Distribution channels or creating multiple sales document types. Can you please suggest me a better method among the two with advantages and disadvantages if possible?
    As far as pricing condition records are concerned, I anyways have to maintain in the key combination either sales document type or distribution channel. So i am a little confused over which is a better approach

    In normal cases, we would be having different sales areas for the following
    1)  Domestic
    2)  Exports
    3)  STO
    4)  Institutional
    In fact, some clients would like to have Domestic OE and Domestic Retail since predominently, they cater to these segments and would like to have reports based on these.  In my earlier project, they had gone for even Exports OE and Exports Retail due to the fact that their major sales is exports.
    In your case, first decide whether to go for a seperate sales area or sale order type depending upon the volume of business the client would do.  If the sale is going to happen only occasionally in any of the above, then have one sales area called miscellaneous sales.
    As for as possible, have the document types to the minimal for better performance. 
    thanks
    G. Lakshmipathi

  • Sales Document type not defined

    Hi
    I am working on an interface. Design is like below
    Purchase Order->File Adapter->XI (BPM)->RFC Adapter->Sales Order in R/3
    When I am trying to cretae a sales document in R/3, I am getting a message back from R/3 saying 'Sales Document is not defined'. But when Checked in R/3, that sales document type is existing. I don't see any Mapping execption in monitoring, but I am receiveing this message back from R/3
    Any feedback will be highly appreciate.
    Cheers
    Rajiv P

    Hi
    Well initially it was a value-mapping problem. It is possible to debug a BAPI/RFC from XI. If it is possible, the please advise me of the procedure. My XI is working fine but I am getting a message back from R/3 as below. Any feedback will be highly appreciated
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:BAPI_SALESORDER_PROXY_CREATE.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <E_SALESDOCUMENT_EX />
      <E_STATUS>E</E_STATUS>
    - <RETURN>
    - <item>
      <TYPE>S</TYPE>
      <ID>V4</ID>
      <NUMBER>233</NUMBER>
      <MESSAGE>SALES_HEADER_IN has been processed successfully</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1>VBAKKOM</MESSAGE_V1>
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER>SALES_HEADER_IN</PARAMETER>
      <ROW>0</ROW>
      <FIELD />
      <SYSTEM>UD1CLNT010</SYSTEM>
      </item>
    - <item>
      <TYPE>E</TYPE>
      <ID>V1</ID>
      <NUMBER>384</NUMBER>
      <MESSAGE>Sales unit ****** is not defined for item 000000</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1>******</MESSAGE_V1>
      <MESSAGE_V2>000000</MESSAGE_V2>
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER>SALES_ITEM_IN</PARAMETER>
      <ROW>1</ROW>
      <FIELD />
      <SYSTEM>UD1CLNT010</SYSTEM>
      </item>
    - <item>
      <TYPE>E</TYPE>
      <ID>V4</ID>
      <NUMBER>248</NUMBER>
      <MESSAGE>Error in SALES_ITEM_IN 000001</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1>VBAPKOM</MESSAGE_V1>
      <MESSAGE_V2>000001</MESSAGE_V2>
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER>SALES_ITEM_IN</PARAMETER>
      <ROW>1</ROW>
      <FIELD />
      <SYSTEM>UD1CLNT010</SYSTEM>
      </item>
    - <item>
      <TYPE>E</TYPE>
      <ID>V4</ID>
      <NUMBER>219</NUMBER>
      <MESSAGE>Sales document was not changed</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2>000001</MESSAGE_V2>
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER />
      <ROW>0</ROW>
      <FIELD />
      <SYSTEM>UD1CLNT010</SYSTEM>
      </item>
    - <item>
      <TYPE>E</TYPE>
      <ID>C_</ID>
      <NUMBER>005</NUMBER>
      <MESSAGE>The object references could not be written to the CRMKEY</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER />
      <ROW>0</ROW>
      <FIELD />
      <SYSTEM>UD1CLNT010</SYSTEM>
      </item>
      </RETURN>
      <TI_EXTENSIONIN />
      <TI_ORDER_CCARD />
      <TI_ORDER_CFGS_BLOB />
      <TI_ORDER_CFGS_INST />
      <TI_ORDER_CFGS_PART_OF />
      <TI_ORDER_CFGS_REF />
      <TI_ORDER_CFGS_REFINST />
      <TI_ORDER_CFGS_VALUE />
      <TI_ORDER_CFGS_VK />
    - <TI_ORDER_CONDITIONS_IN>
    - <item>
      <ITM_NUMBER>000001</ITM_NUMBER>
      <COND_ST_NO>000</COND_ST_NO>
      <COND_COUNT>00</COND_COUNT>
      <COND_TYPE>EDI1</COND_TYPE>
      <COND_VALUE>57.600000000</COND_VALUE>
      <CURRENCY>AUD</CURRENCY>
      <COND_UNIT />
      <COND_P_UNT>1</COND_P_UNT>
      <CURR_ISO />
      <CD_UNT_ISO />
      <REFOBJTYPE />
      <REFOBJKEY />
      <REFLOGSYS />
      <APPLICATIO />

  • Sales document type is not defined for(sales org/division/distribution chan

    Hi Friends,
    I am getting the error that sales document type is not defined for x/y/z(sales organisation/division/distribution channel). while creating sales order.
    Any pointers will be rewarded.
    Regards

    Hi there,
    When you define a sales doc type in VOV8, you also should assign that to the sales area SA (sales org / dist channel / division).
    Only then you will be log a sales order for a sales area.
    Check if you have done it. You will find it in SPRO --> Sales & Distribution --> Sales --> Sales doc header --> Assign sales doc type to SA.
    Regards,
    Sivanand

  • Immediate Transfer Order Creation not occuring for Sales Document Type

    Hello gurus,
    I have a situation where a transfer order is not being created immediately for a specific sales document type.
    Here is an example document flow of a desired scenario where the system is working:
    Sales document type:  ZOR
    >  Delivery type:  LF
    >  WMS transfer order
    The Item Category in this scenario is TAN.
    Here is an example of the document flow in the current scenario where the system is not working:
    Sales document type:  ZPRD
    > Delivery type:  LF
    The Item Category is also TAN in this scenario.  The only identifiable difference in these scenarios is the sales document type.  For the ZOR SaTY, a Transfer Order prints immediately once the delivery is created.  For the ZPRD SaTY, a Transfer Order needs to be manually created after delivery creation.
    Is there a configuration setting that is controlling this?  Any help would be greatly appreciated.

    Thank you very much for the link.  When I insert the WMTA output type in the delivery output header, the Transfer Order is automatically created.
    The problem I'm running into now is the configuration setting that controls this.  I thought I figured it out when going to this IMG path:
    SAP Customizing Implementation Guide  -->  Logistics Execution -->  Shipping -->  Basic Shipping Functions  -->  Output Control -->  Define Print Parameters Shipping
    When selecting the Delivery Note, the shipping point I was using was not configured in this location.  I added the shipping point into this transaction, saved, and created a new order & delivery.  However, the WMTA output type still was not automatically inserted into the delivery when saving.  Is there another location I should be looking to fix this so that when I enter an order with a particular Shipping Point, the WMTA output type automatically appears in the delivery?

  • Down Payments Error: Account type K is not defined for document type DZ T

    I am getting the error message: Transaction code: F-29
    Account type K is not defined for document type DZ
         Message no. F5243
    In this case i am trying to post a customer down payment in t.code:  F-29.
    In the document type DZ in OBA7 we tick only G.L and Customer tab as this is not a vendor document.
    Also the settings in T. Code : OBXR where we maintain configuration for customers has been maintained with a special G/L reconciliation account.
    any help will be really appreciated,
    Regards
    Satish

    I have checked all the settings
    OBXR for Customer Down Payments. It is with indicator A and a Special G/L Account has been configured.
    The special G.L Account is of the Recon account type Customers with FSG as Recon accounts
    The document type DZ in OBA7 is ticked for G.L and Customer and this is how i think it should be as i am not paying a vendor downpayment
    but it still gives me the same error.
    Regards
    Satish

  • Error:Account type D is not defined for document type RE

    Hi! I encountered this error msg: "Account type D is not defined for document type RE"  while posting IR in mir6.  What does this error msg mean? Thanks!

    hi,
    RE stands for Gross postings...
    When you block the document for payments...its never possible to the post the payments for such documents...
    The invoice seems to get posted, but is internally blocked for payment and later you need to delete the payment block indicator and process the invoice further for payments...
    check OMBA as well for the settings...
    Regards
    Priyanka.P

  • Account type D is not defined for document type RE - Credit Memo

    I tried to key in credit memo of fixed asset at MIRO but prompt out this errors "Account type D is not defined for document type RE". I checked OMBA - account type for vendor is selected. Any advise to resolve this problem?

    Hi Sanil,
    It is just a debit Vendor and Cerdit Fixed Asset. Is anything wrong here?

  • Copying from sales document type L2 to RK is not supported

    Dear Experts,
    Can any guide me please regarding my issue,
    My process is linked with service order,after creation of service order,I am going to DP90 Tcode with this it will generate debit memo request,and I will do the billing from vf01.
    Now I want to make some  invoice correction,
    so I have copied the standard RK invoice correction document to ZRK
    and i have assign this for my sales area in sales document header,
    now I have raised the order from va01,and I have given the invoice document number,
    its showing this error u201CCOPYING FROM SALES DOCUMENT TYPE L2 TO ZRK IS NOT SUPPORTEDu201D
    for this I think I have to maintain the copy controls,
    can any one help me out how to maintain the copy controls for invoice correction.

    Dear JP,
    As you said I have maintained the item category,I have only two item categories,one is L2N,L2W.
    I have copied the standard document  from VTAF,and I have maintained the copy controls like this,
    Copied from RK to F2 as ZRK to ZL2 header data
    Data T   052  billing doc header
    Data T  103   billing bus header data
    Data T  003   billing header partner
    Copying requirements as   021  billing header
    Tick on copy item number
    Then item category maintained as
    Item category as L2N
    Data T  153  Item from billing document
    Data T  104  billing bus item data
    Data T  004   billing item partner
    Copying requirements  as  000
    Pricing type         u201CEu201D
    2nd pricing type  u201CDu201D
    And the same for L2W,but I have not maintained for u201CG2Nu201Ditem category,but I has copied automatically?
    Then I have raised the sales order from va01,its ask the billing document number,I have  given the billing doc number and press on copy,its has open the sales order,
    Here I have two issues,
    1st its generating the two same line items,with G2N item category
    EG:if I have given 2 materials line items then its generating the 4 line items with the same material.
    2nd I am not able edit any line litem,it all are coming in non editable mode,how to make editable field,and make the changes for price and quantity.
    After saving the document again I have to do the billing from vf01?
    please suggest me,so this will be added advantage to the user.

  • Copying from sales document type QTH to HU is not supported

    guys i was trying to create a contract based on a quotation created by me  here QTH is my quotation type and HU is my contract type the error i encountered was thiss.
    Copying from sales document type QTH to HU is not supported .

    Hi
    In VTAA maintain the copy control settings from Quotation to Contract
    I think you can copy the AV document type which is quotation for contract.
    regards

  • Error - Account type D is not defined for document type WL

    I am getting error while doing PGI (Post Goods Issue).
    Error - Account type D is not defined for document type WL

    As we had the same problem for a document in our system, I was also browsing for the answer. I saw this thread and now we have found the solution, so could not resist sharing, although it is an old posting.
    In these cases it can be that a user wants to create a purchase order of the type UB. But if you have stock transport between two companies, you should not use this order type. You have to use order type NB.
    If the user creates the PO with NB then probably they will not get the message.

  • Two different billing document types for 1 sales document type.

    Hi Gurus,
    I have a requirement , wherein our client is having counter  sale.
    He is using one sales doc type , and while creating a order , he is manually adding payment terms.
    Requirement is , if the payment terms are cash, billing doc type created later on should be one , else during credit sales , billing document type should be different.
    As per my understanding this is not possible.
    Want to know if anyone has some different thought on this.
    Thanks in advance
    Nilesh.

    Dear Nilesh,
    There two options you can look in to
    One option is
    1.You can define different sales document types for cash and credit.
    2. You can define two different billing documents.
    3.Do the copy control settings for each combination
    Cash sales order >Delivery>Cash invoice
    Credit sales order >Delivery>Credit invoice
    Second option is
    1. You can maintain single sales document for both the processes.
    2.Define two different billing types then do the copy control settings for both billing types.
    But in this option user need to select the billing type manually based on the process while creating billing document.
    I hope this will help you,
    Regards,
    Murali.

  • After creating a sales document type in tvak

    after creating a new sales document type in tvak what next to link it to BP number.

    Hi
    it should be done via configuration, not using the tcode
    goto SPRO
    press F5
    search for SALES DOCUMENT TYPES
    <b>in sales & distribution
    sales
    sales documents
    sales document header
    define sales document types</b>
    there you have to add extra new entries
    Regards
    Anji

  • Sales document types

    Do all sales document types need to have a "Billing type" and "Devlivery type" defined? In our system we have 2 sales order types (Credit and Debit memo) with no information in the Billing and Delivery type columns.
    Thanks!

    Dear,
    You can very well go to table TVAK and TVFK to get all the list of document types SAP has provided.
    Just provide teh selection criteria document type not equal to Z* and you will get all the SAP delivered document types.
    Please follow the below link:
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/55fb06545a11d1a7020000e829fd11/content.htm
    Regards,
    R.Brahmankar

Maybe you are looking for

  • How do I find the size of a video file in iTunes store?

    Is there any way to find out how big a video file is before I download it to my computer? I see that movies show the file size in the product description, but what about episodes of a TV show? Or a complete season? Or a video in iTunes U? I tried "ri

  • How do I get my applications back into iTune library

    Just upgraded PC to Windows 7. Got my music libray 75% back, but not i have an issue with iPhone. Over 100 applications on phone, but can't get them to show on PC iTunes. How do I get library updated or do i have to download them all again. Also why

  • No thumbnails in finder/preview after exporting files as dng out of lightroom?

    Does anyone have experience sorting out the issue of no thumbnails in finder/preview after exporting files as dng out of lightroom? There are several conversations in the forum about this problem, but cant seem to find a solution. Anyone know how to

  • TS3694 iPhone 3 GS restore error 2001 or 2006

    Need help with restore error 2001 or 2006; I have updated iTunes and OS to latest releases. Thx, LJ

  • Artifact problems burning QT to DVD

    I'm trying to burn a 3 minute QT movie that I made in FCE4 to Roxio Toast 6 and I keep getting artifacts. In preferences I choose 1x speed but when I go to burn it changes to 4x.  What can I do to defeat the artifacts and get a clean burn?  Can I use