Sitemap

Amicuk Programming Answers

HELP ON IDOC

-0001-11-30   Views:0

Advertisement

i am using basic idoc DELFOR02 and message type DELINS. i created a custom segment ZE1EDP16 under standard segment E2EDP16..i added a field called DNO in that custom segment. value of this DNO is populated by EDI people. I need to pass that DNO value

i am using basic idoc DELFOR02 and message type DELINS. i created a custom segment ZE1EDP16 under standard segment E2EDP16..i added a field called DNO in that custom segment.
value of this DNO is populated by EDI people. I need to pass that DNO value from ZE1EDP16 segment to field LIFEX in LIKP  and to KANBAN  TEXTS IN DELIVERY.
can anyone suggest how can i pass the value from this segment to likp-lifex.
idoc is inbound idoc.

The replay answer
Advertisement
hi ashish ..thanks for the reply i am new in abap..i found this exit     EXIT_SAPLVED4_002
following is the code i found in the include
could you to tell me in coding..how pass value of field DNO in segement ZE1EDP16  to LIKP-LIFEX and delivery kanban texts.
CONSTANTS: C_E1EDP16(7)     TYPE C VALUE 'E1EDP16',
           C_ZE1EDP16(8)    TYPE C VALUE 'ZE1EDP16',
           C_EXTENSION(14)  TYPE C VALUE 'ZEXTN_DELFOR02',
           C_ETDAT(11)      TYPE C VALUE 'RV45A-ETDAT',
           C_LIFSP(10)      TYPE C VALUE 'VBEP-LIFSP',
           C_4003(4)        TYPE C VALUE '4003',
           C_YES            TYPE C VALUE 'X'.
DATA: X_BDCDATA  TYPE BDCDATA,
      X_IDOCDATA TYPE EDIDD,
      X_E1EDP16  TYPE E1EDP16,
      X_ZE1EDP16 TYPE ZE1EDP16,
      L_DATFM    TYPE USR01-DATFM,
      L_INDEX     LIKE SY-TABIX,
      L_EDATUB    LIKE E1EDP16-EDATUB.
*To read the Control record to determine the extension
READ TABLE T_IDOC_CONTRL_1.
IF SY-SUBRC EQ 0.
*If it being executed for Extension ZEXTN_DELFOR02
  IF T_IDOC_CONTRL_1-CIMTYP = C_EXTENSION.
*To execute the code only when Screen 4003 starts
    READ TABLE T_BDCDATA WITH KEY DYNPRO = C_4003
                                DYNBEGIN = C_YES.
    IF SY-SUBRC EQ 0.
*Loop at all the E1EDP16 segments and read their respective child
*segment ZE1EDP16
      LOOP AT T_IDOC_DATA_1 WHERE SEGNAM = C_E1EDP16.
        X_E1EDP16 = T_IDOC_DATA_1-SDATA.
        READ TABLE T_IDOC_DATA_1 INTO X_IDOCDATA
                                 WITH KEY SEGNAM = C_ZE1EDP16
                                          PSGNUM = T_IDOC_DATA_1-SEGNUM.
        IF SY-SUBRC EQ 0.
*The Date format is changed to adapt to the date format in the BDCDATA
*The Date format in the IDoc segment is YYYYMMDD
          X_ZE1EDP16 = X_IDOCDATA-SDATA.
          CLEAR: L_EDATUB,
                 L_DATFM.
*To get the BDCDATA date format check the User Settings
          SELECT SINGLE DATFM
                   INTO L_DATFM
                   FROM USR01
                  WHERE BNAME EQ SY-UNAME.
          IF SY-SUBRC EQ 0.
            CASE L_DATFM.
              WHEN 1.  "DDMMYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB2(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB0(2).
              WHEN 2.  "MMDDYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB0(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB2(2).
              WHEN 3.  "MMDDYYYY
                MOVE: X_E1EDP16-EDATUB0(4) TO L_EDATUB4(4),
                      X_E1EDP16-EDATUB4(2) TO L_EDATUB0(2),
                      X_E1EDP16-EDATUB6(2) TO L_EDATUB2(2).
              WHEN 4.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN 5.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN 6.  "YYYYMMDD
                MOVE: X_E1EDP16-EDATUB TO L_EDATUB.
              WHEN OTHERS.
            ENDCASE.
          ENDIF.
*To Read the record in BDCDATA having the same Date
          READ TABLE T_BDCDATA INTO X_BDCDATA
                      WITH KEY FNAM+0(11) = C_ETDAT
                               FVAL       = L_EDATUB.
          IF SY-SUBRC EQ 0.
*Insert an entry in BDCDATA for populating the value for LIFSP
            CLEAR L_INDEX.
            L_INDEX = SY-TABIX + 1.
            X_BDCDATA-FNAM+0(11) = C_LIFSP.
            CONDENSE X_BDCDATA-FNAM NO-GAPS.
            X_BDCDATA-FVAL = X_ZE1EDP16-LIFSP.
            INSERT X_BDCDATA INTO T_BDCDATA INDEX L_INDEX.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDIF.
DATA : L_TABIX    LIKE SY-TABIX,
       L_E1EDKA1  TYPE E1EDKA1.
CONSTANTS: C_4002(4)     TYPE C VALUE '4002',
           C_IHREZ(10)   TYPE C VALUE 'VBKD-IHREZ',
           C_E1EDKA1(7)  TYPE C VALUE 'E1EDKA1',
           C_AG(2)       TYPE C VALUE 'AG'.
READ TABLE T_BDCDATA WITH KEY DYNPRO = C_4002.
IF SY-SUBRC EQ 0.
  L_TABIX = SY-TABIX + 1 .
  READ TABLE T_BDCDATA WITH KEY FNAM = C_IHREZ.
  IF SY-SUBRC NE 0.
   READ TABLE T_IDOC_DATA_1 WITH KEY SEGNUM = C_000004.
    LOOP AT T_IDOC_DATA_1 WHERE SEGNAM = C_E1EDKA1.
      IF  T_IDOC_DATA_1-SDATA(2) EQ C_AG.
        L_E1EDKA1 = T_IDOC_DATA_1-SDATA.
        CLEAR X_BDCDATA .
        X_BDCDATA-FNAM = C_IHREZ.
        X_BDCDATA-FVAL = L_E1EDKA1-IHREZ.
        INSERT X_BDCDATA INTO T_BDCDATA INDEX L_TABIX.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.

Go to See the other 4 answers

Logical System in IDOC-XI scenario

Category:DefaultRelease time:2015-10-11Views:130

Hi,      I need help to understand few things in IDOC-XI scenario, could any one help me in this regard.     we use Adapter specific identifiers to map services, we have following type of identifiers 1) Sys.ID & Client No.  2) Logical System.  my que[More]

IDoc not received in MII

Category:DefaultRelease time:2015-10-11Views:130

Hi All,  I am using SAP MII 12.1.5 Build 87.  I am facing problem with iDoc Listner we have configured iDoc Listner properly in SAP ERP, SAP NW and in SAP MII.  We are able to send iDoc from SAP but we are not able to receive same in MII.  Port and i[More]

Open Sales orders through IDOC

Category:DefaultRelease time:2015-10-11Views:130

Hi We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC Is there any I[More]

Scheduling Agreement with Delivery Schedule using Idoc messages

Category:DefaultRelease time:2015-10-11Views:130

Hi all, Can anybody please explain the importance of the field name "LABKY" in Idoc execution for Forecaste/JIT Delivery Schedule. My requirement is that when i send a new Idoc i do not want the old schedule line which are not yet released , to[More]

Invoice and delivery notes - idocs..

Category:DefaultRelease time:2015-10-11Views:130

Hello SD experts, I am new to SD. Can any one tell me what is the invoice. I mean what are the table AND transaction codes I have to go and check ? What are delivery notes ? My functional consultant is telling that there is a consolidated invoice and[More]

Error Posting IDOC: need help in understanding the following error

Category:DefaultRelease time:2015-10-11Views:130

Hi ALL Can you please, help me understand the following error encountered while the message was trying to post a IDOC. where SAP_050 is the RFC destination created to post IDOCs <?xml version="1.0" encoding="UTF-8" standalone="[More]

Error while executing a JDBC to Idoc scenario : No standard agreement found

Category:DefaultRelease time:2015-10-11Views:130

Hello SAP PI Gurus,  I am having a JDBC to idoc Scenario .And the interface is running at 10 min of duration.  <SAP:AdditionalText>No standard agreement found for , BS_EXT_CTBSREPDB, , BS_ERPQAS_QE1_320, http://XYZ.com/FI/FI_FI_01/Charges, FIDCC2<[More]

Getting an error "Customer could not be determined" for IDOCs in SCM 7.0

Category:DefaultRelease time:2015-10-11Views:130

Hi Friends,     I am executing the report RSMIPROACT in ECC 6.0 system to publish Demand and Stocks into the SCM 7.0 system. The IDOC is processed without any errors in ECC 6.0 . However, in the SCM 7.0 system , the IDOC fails with the error. I have[More]

Error in creation of  PurOrd IDoc

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I have set up the output type for PO and created patner profiles and also add the message types ORDER and ORDCHG  but  when I save the PO and check the messages, I get an error: " No recipient found for message type ORDERS in the ALE Model &q[More]

Error while updating the status record of IDOC in SAP

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I am facing this problem. I have done outbound processing and IDOC was sent successfully from SAP to EDI system and it was processed in EDI and now EDI system wants to send the status back to SAP with a status message and the status number th[More]

Help in creation of XML file for IDOC postings

Category:DefaultRelease time:2015-10-11Views:130

Hi All, Need help if anyone has knowledge/experience in creating XML files for IDOC processing. We need to design an input file (in XML format) for creation of IDOCu2019s for purchase Invoices through Interface. We have an existing input file, which[More]

Hot
I have created a folder on my hard drive called Photo Archive and it has subfolders based on year and further subfolders based on month and a further subfolder for the day.  I have pointed iCloud to the 2011 subfolder for the Upload folder.  I notice [More]
Been scouring the Internet and forums to see if I can get some info about the networking on the Officejet 8500 but haven't found anything related to the wired network option of the printer. I have the basic one with the wired network - the A909 versi [More]
Help my phone only has a picture of a charger with an arrow pointing to the words itunes, I have tried everything.. can't get my iphone 4s to work after trying to update...please <Email Edited by Host>This normally indicates to reconnect the iPhone [More]
I have created an Illustrator file containing a spot color and a grayscale placed image. When saving as a pdf, the Grayscale image separates (or converts) to CMYK. Am on deadline and appreciate any help.What is your Document Color Mode (File menu)? M [More]
I setup my Yahoo account on my new Iphone 3G. It was working for 2 days and then it stopped receiving e-mails. It does the update, gives me a message in the Inbox that mail is updated but I haven't received mails since last Thursday. All my other fol [More]
This is so dirt simple, it's embarrassing to ask-but to transfer from my camera to iPhoto MUST I use a special USB cable? I have many cables, all bought for special reasons, and I transferred photos sev'l weeks ago, but can't remember where "the cabl [More]
I created my website with iWeb and published it to a folder on my desktop. All links, pages and albums work beautifully. When I uploaded my site to HostMonster, all I get is my Welcome page with no index to my other pages. I had created links to othe [More]
Hi, I placed an order incorrectly. I have already spoken to someone on the phone to cancel, but the order still shows as "processing" in my account. How quickly can I cancel the order to place another one? ThanksHi Warner12, Thanks for the post [More]
Dear Gurus, We need to set up SAP roles for auditors in or system for SRM ECC & BI. Could you please suggest on wich roles should be granted to the auditors as best practice to follow on? I will really apprecciate your help. Best Regards, ValentinoHi [More]
Hi One of the people I support is having a problem with iweb. She went and updated her site the other day. The next day, when she opened iweb to work on it some more, it didn't recognize her domain.sites2 file. It actually opened as if the site never [More]