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
How to find out web-inf path from the physical drive? I have some user profiles in web-inf directory.SO I want to know the path from root directory like d:/program files/allaire/jrun/appname/web-inf/profiles/username like that. Presently I am able to [More]
in my procedure, i use the following codes: SELECT v.VALUE INTO l_cputime FROM V$SYSSTAT v WHERE v.NAME ='CPU used by session'; But it always reports "table or view does not exist". Is anything wrong with my codes? I can SELECT * FROM V$SYSSTAT; [More]
I did not set up security question but it will not let me download anything from my new phone without answering them, please help Account Security Team (AST)  Check the AppleCare number for your country here: http://support.apple.com/kb/HE57 Call t [More]
Hi, i'm with a MBA previous model and i've installed Lion and itunes 10.3.1. I can't seem to be able to put itunes in full screen mode!!! The double-headed arrow on the top right corner of itunes does not exist, while if i go to view->Full Screen i't [More]
iMac 2009 OSX 10.8.5 After upgrading from Snow lipard to Mountain Lion bouth my Epson R1900 and 3880 will not print in Adobe Lightroom 5. I have checked in the PPD file and the R1900 is listed but the 3880is not. I ran update from the apt stor and al [More]
I've found a serious issue with the media indexer, I don't know if this has been reported before. Right now, my Pre 2 with webOS 2.1 is unusable as a mp3-player. First I've tried to sync music with iTunes on my Mac with "The Missing Sync". Every [More]
I've removed the files from my iTunes library folders, but they still show up with icons in the Books sync window for my phone and iPad. I've deleted all hard copies of theLeave it to Safari to crash and not finish my post.  I've deleted all of my ha [More]
Is there a way to open HTML Webpages inside Flash Movies Please Help...............you can display certain html tags in an html-enabled textfield or a textarea component. but you can't display a webpage, per se.Read other 5 answers [More]
ok i have had the ipod fr a while and when i try and restore it gives me the 1437 error? i have no clue what this mean, can anybody help me? when is specifys the ipods components like the name and capacity etc.. under capacity it says N/A?  get back [More]
is it possible to write store procedure for inserting records and multiplying them description qt rate Amount drop procedure a1; create or replace procedure a1 a_description in varchar2, a_qt in number, a_rate in number, a_amount in number) as begin [More]