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
Hi, I am using the new way of creating unit tests following this page http://help.adobe.com/en_US/flashbuilder/using/WS27ECA937-059A-4308-A2E2-F3A3AAB64337.html #WSF04FE993-D0BA-4a2b-BDF1-8B8ABF22E448, which is really easier and more efficient than o [More]
My girlfriend bought an iphone today on craigslist..the man who bought it said that it was jailbroke but he didn't use it very much. The program was cydia. We went the the att store to get some accessories and the techician did a restore on the phone [More]
I'm trying to follow this tutorial here, http://www.layersmagazine.com/photoshop-cs4-a-picture-worth-a-thousand-words.html Which is turning a portrait into a portrait of words, and i'm having a problem with step 9. "9 PASTE INTO A LAYER MASK Show all [More]
I've been in Australia for over a year, my previous Ipod broke so a purchased a new Ipod touch this year. However, as my Itunes library is on my laptop back in the UK, I'm a little depleted of music on this Ipod. Is it possible to get previous Itune [More]
Firefox is set as the default browser, but if I click a link in MS Word, the link is opened with MS Internet explorer. Why?What version of Windows and Office is it? I had this issue with an older version of office and Windows XP. Basically, MS are us [More]
I would like to know if I can plug in my Printer (HP 1315v) directly to my D-Link router with a wire and then use the printer as a network printer. The printer has a firewire connection I believe.  Is it possible to put some type of adapter on it so [More]
hi! i am able to set the borders of panels, frames, almost everything to lineborder but when i do this for tabbedpanes, nothing happens and i still get shadowy borders for it... what culd be the reason??/This adds a rectangular border around the enti [More]
We need to get the name or id of the current page, and based on the pagename, we retrieve configuration to launch specific web service. pageContext.getPageLayoutBean().getPageFunctionName() is no sufficient. Since one page function sometimes contain [More]
Hello all, I have CS4 CD and there was Indesign damaged. Now I have downloaded the CS4 version online. Now showing Acrobat 9 Pro to a fault, why? The Problem ist: the Adobe PDF printer and Adobe PDFViewer Safari plug-in, but how do I fix it?Hi mayab4 [More]
Not a day goes by, where I have to once or twice switch to Firefox to open quicktime files, or in some cases, open the site. I understand that each website has to be set-up in a certain way, but, it's, sort of ironic, not to be able to open a QT(Appl [More]