Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALE IDOC

Former Member
0 Kudos

Hi Friends,

I am sending P.O. from one system to other,using message type ORDERS and basic type ORDERS05 .

On receiving system I am using inbound process code ORDE.

Sending is successful but on receiving side its giving me error, VKORG, VTWEG, SPART cannot be determined for customer 0000000001 .

So please suggest me some solution on this ,,

Proper points will be rewarded to helpful answer.

Thanks,

Brijesh........

4 REPLIES 4

Former Member
0 Kudos

Hi,

In your case order is getting posted at receiver side. before creating/posting order it check the sales group,customer,materials you are using to create are exists in system or not.

Prior to posting the transactional data we should ensure that all the required master data available are not..

First maintain the masterdata .. then try..

Reward if find useful

Former Member
0 Kudos

Hi Brijesh,

I faced the same problem in IDOCs.

U need to main the entries in transaction VOE2 . the IDOC will pick up the sales area from this transaction .

If u are not maintaing this transaction then u need to write an exit to get the sales area.

U need to code in Function module IDOC_INPUT_ORDERS

In this function module u find PERFORM check_idoc_orders.

In this perform u have CALL CUSTOMER-FUNCTION '007'

In 007 u have a include INCLUDE ZXVEDU09.

In this include u need to write the code to populate the sales are in the IDOC.

DATA: BEGIN OF wa_salesarea,
          vkorg TYPE vkorg,
          vtweg TYPE vtweg,
          spart TYPE spart,
        END OF wa_salesarea.

  DATA: fs_dxvbadr LIKE LINE OF xvbadr,
         t_dxvbadr LIKE
          STANDARD TABLE
                OF fs_dxvbadr.

  DATA: xyvbak TYPE vbak.

  t_dxvbadr = dxvbadr[].

  READ TABLE t_dxvbadr INTO fs_dxvbadr WITH KEY posnr = '000000'
                                                parvw = 'AG'.

  IF sy-subrc EQ 0.
    SELECT SINGLE vkorg
                  vtweg
                  spart
             INTO wa_salesarea
             FROM knvv
            WHERE kunnr = fs_dxvbadr-kunnr
              AND loevm NE 'X'.

    IF NOT wa_salesarea IS INITIAL.
      xyvbak = dxvbak.
      xyvbak-vkorg = wa_salesarea-vkorg .
      xyvbak-vtweg = wa_salesarea-vtweg.
      xyvbak-spart = wa_salesarea-spart.

      MOVE-CORRESPONDING xyvbak TO dxvbak.

    ENDIF.                             " IF NOT wa_salesarea...
  ENDIF.                               " IF SY-SUBRC EQ 0

Best regards,

raam

0 Kudos

Hi Ram,

That problem is solved, now i am facing one other problem.

I am creating IDoc from P.O. there is a segment E1EDKA1 AG , which has field PARTN. Some value is appearing in it but I am not able to find out,from where this value comes.

Please give me some suggestions.

Thanks & Regards,

Brijesh Soni

Former Member
0 Kudos

maintain sales organization , divsion, distribution channel in target system

and check the master data once.

then ur problem will solve.

Edited by: srikanth vipparla on Jun 24, 2008 11:23 AM