IDoc problem :: PI - JCO

Hi when we post an SAP standard Idoc to JCO a receiving system this happens:
1. IDoc pass through with confiruration only = success
2. one-to-one mapping with no conversions or anything = error
we have done a filecompare and everything is identical. - still we get this error in sm58 when using mapping (we have tried everything related to IDX2):
"IDOC_ERROR_METADATA_UNAVAILABLE: Matching meta data for segment definition "E2BPIBDLVHDR001"
not found when processing IDoc no. 0000000000006011 of type "SHP_IBDLV_SAVE_REPLICA04" ."
Any good ideas?
Please advice
Thanks

thanks guys - but agian, I don't think this has something to do with metadata. We have checked everything - the error occurs on Jco site, maybe because of some differences in the message (when having a mapping step) and in the loaded metadata. Jco actually loads metadata from ECC and not PI.
When we have no mapping everything works fine.
please advice
Thanks

Similar Messages

  • Problem to JCO after configure ModelData

    Hello dear Experts.
    I have a DC Web dynpor java when i depploy my DC and tray to configure the ModelData at the end of the  asisstant of creating this when i press button finish i got the next error:
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
        at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:481)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:700)
        at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:664)
        ... 39 more
    If i enter to the Portal content Studio in order to configure this JCO again i got the same exception We have to restart server
    to enter to the JCO maintenance of content portal studio.
    I am sstuck in this problem.
    Thanks for helping me.

    Hi,
    Please look at these links for that
    [Problem to JCO After Configure ModelData|http://www.qnasap.com/problem-to-jco-after-configure-modeldata/] and [Null pointer while maintaining JCO destination|Null pointer while maintaining JCO destination;
    Hope this is help full for you,
    Regards
    Vijay

  • Problem with JCo Connection Pool

    Hi,
    I have a problem with using an RFC Model in my WebApplication. So sometimes the access to the function block works, and sometimes it doesn't work. Now I know, that there is a problem with the connection pool. Look at this message:
    com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool WD_X24_MODELDATA_DEST_CPIC_REKTO_DE_useDefinedUser is exhausted. The current pool size limit (max connections) is 10 connections.
    So it looks like a problem with closing the JCo Connections after using. Do know where the problem is? Because I'm using many other function blocks with no problems.

    Hello,
    You need to increase the pool size via Visual Administrator.
    Server 0 -> Services -> JCO RFC Connections.
    Change the pool size from there. I believe a restart is in order.
    Regards,
    Jan

  • A  problem about JCO

    Hi experts:
          I  meet a strange  problem,  i  deploy a webdynpro java   program which  use  rfc  module.  The SLD and JCO  connection was  good. When running this program , sometimes  it can used  but  sometime  it  run with error.
         The  error message like these:
         com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CPIC-CALL: CMRCV on convId: 89492625
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       connection to partner '10.10.10.20:3300' broken
    TIME        Tue May 11 16:04:19 201
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -6
    MODULE      nixxi.cpp
    LINE        3960
    DETAIL      NiIWrite
    SYSTEM CALL writev
    ERRNO       32
    ERRNO TEXT  There is no process to read data written to a pipe.
    COUNTER     3
            at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:516)
            at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1514)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3980)
            at com.sap.mw.jco.JCO$Client.execute(JCO.java:3417)
            at com.sap.mw.jco.JCO$Repository.execute(JCO.java:20577)
            at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:20916)
            at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:20602)
            at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:20706)
      How can do with it?
      Thank a lot!

    Hi,
    Please take a look at the below link.
    Hope this will help you.
    http://wiki.sdn.sap.com/wiki/display/EP/TroubleshootingSAPJavaConnector%28JCo%29
    Also check the system connection test.
    Regards,
    Sandip
    Edited by: Kundu Sandip on May 12, 2010 9:28 AM

  • Mapping with IDoc problem

    Hi All
    I am having a problem where if I get over about 30 records from my 3rd Party in a file. This data is mapped to the Materials Master IDoc(MATMAS05) and it gets a mapping error when trying to run thru the mapping.
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MATCAT_MATMAS_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
    If I take this data from the Payload in SXMB_MONI and test in the Graphical Mapping tool in Integration Design it crashes with the above error. If I take this file and break into 2 parts and then send thru the mapping tool both files has no error. Does anyopne have any idea why this error occurs(could this be a memroy error - but for like 30 records) and how I can fix this as we would like to do a mass upload - about 9000 records(materials).
    Your help will be appreciated.
    Thanks
    Clinton

    Hi
    This is such a weird error.
    I have now started taking this file that I receive from the 3rd party with 200 records and tested it with the mapping tool. The results are as follow: From record 1-31 goes successful, 32-147 goes successfully and 148-200 goes successfully. So if I take the file as one file it crash, but if I break the file into the above 3 files it goes thru fine. for the first part it can only take 31 records, the 115, and then the rest. This does not make any sense, can someone please give me some advise.
    Thanks
    Clinton

  • G/L Idoc problem

    Hi All,
    I am posting an invoice from a flat file. First of all i will execute the program RSEINB00 and input the file name. This program will create an idoc from the flat file.
    Next, I will execute the program RBDAPP01 to process the idoc and post an invoice.
    The problem i am facing is, When there are more no of lines (G/L accounts) in the file ( Say 5948 lines ) the created IDoc data records are as follows.
    it has total 47872 segments. And it splits the idoc and each segment block is having 993 lines (G/L accounts).
    Segments 000001 007951 - 993 lines
    Segments 007952 015951 - 993 Lines
    Segments 015952 023951 - 993 Lines
    Segments 023952 031951 - 993 Lines
    Segments 031952 039951 - 993 Lines
    Segments 039952 047872 - 983 Lines.
    It will create a BDC session and whn i process the session error comes "No batch input data for screen SAPMF05A 0700" after 949th line. When i see th OSS note it says "Invoices with more than 949 G/L account line items must be split".
    My Question is Where can i do this setting inorder to restrict the G/L account lines to <949 in each segment block??
    Any insights will be appreciated.

    Hi Tushar,
    You can add your own codes in user exit to restrict the G/L account lines to < 949 during creation each segment block.
    Please search any user exits available in the function module which is used for inbound IDoc creation.
    In this case, your BDC will not give an error message because you already handled the max lines for G/L account during creation an IDoc for batch input process.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Inbound INVOIC01 IDOC problem

    Hi,
    I am working on inboind INVOIC01 idoc and i am facing some problem in that.
    When IDOC comes in it is creating application document ( Status 53 ). When i go and check in transaction MIR4 the application document (Invoice) is created. But the problem is, the Invoice is not being posted.
    When i see the invoice document, there is not tax code and so the invoice does not show any amount. I do not know why it is happening.
    Can anyone let me know what are the all required segments / fields for inbound invoice interface. What are the all configuration options required for it.
    Thanks,

    Hi Srinivas,
    Thanks for your reply.
    I have already configured the tax code config and now invoices are created correctly.
    But now i have one scenario which i am tying to figure out how to get it right.
    Let say for example
    <u>Example - 1</u>
    - i have PO with 1 line iteam with Quantity = 1 and amount $100. ( we mostly have PO with quantity =1 and only thing matter is $ value )
    - If the incoming invoice also have quantity = 1 and amount $100, it works fine.
    - But the problem is, sometime vendor sends the partial invoice. that is, quantity = 1 but amount $ 50. There can be multiple invoice with same quantity as PO line item different amount at different time. In this case i am gettng "Account Determination" error ( message  M8 147 ). Is there any way i can make this scenarion work. 80% of invoices comes like this. Please let me know
    <u>Example - 2</u>
    - i have PO with 1 line iteam with Quantity = 2 and amount $200.
    - If the incoming invoice also have quantity = 1 and amount $100, it works fine. Also, if it has quant = 2 and amount $ 200 it works fine. In other workds the quantity / amount ratio in invoice matches that of PO, it works fine.
    - But in few case we will get invoice with quantity = 1 ( PO as quant = 2) with amount 80 ( infact, any value other than 100. PO has $200, $100 / 1 each ) and in this case invoice is failing too.
    Can you please let me know, is there any setting in Logistic Invoice Verification, to support these scenarios.
    Thanks
    Pratik

  • Problem create jco connection in webdynpro application run time

    Hi There,
    I created webdynpro application using rfc model.
    After deploy the project , i created two jco connection
    for data & meta data this is work o.k (test with no errors). the sld is o.k.
    We are using application server (Single Server) for data
    & message server for meta data (Load Balance).
    During run time there is an error message:
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.ness.crm.customerlasttwo01pckg.model.types.Datab could not be loaded: com.sap.dictionary.runtime.DdException:
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:225)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:78)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:64)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:39)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
         ... 44 more
    <u>Can some one help me with this matter?</u>
    Best regards Nir Shohat.

    Hi Nir,
    We also had same problem but no we won't. Check ur config on SLD again and the try to the test connection from the http://localhost:4444/webdynpro ( WAS 6.4 )server.
    If this connection is OK then deploy some small application n see.
    Is ur's JCo connection working for J2ee application?
    Arnigs

  • Add segment to inbound idoc problem

    Hi ,
    I want to insert a segment in the middle of the segements inside a inbound idoc processing module.The problem is
    i am able to pass the segmnet name and data but i don't now what should be populated to the segment number (SEGNUM). Its value is coming as the same value of the previous segment when i checked in debugging mode.Can any body tell me how to populate the segnum field.
    Regards,
    Soumya.

    Have you tried by just keeping it blank.I will work fine if the hierarchy is kept correctly.

  • Strange IDoc problem in new System

    I am trying to post IDocs through a new production system that has just been set up. We have been running the scenario in the Test environment successfully for a few weeks.
    I send a batch of IDocs to the system, for example a bunch of four IDocs. Sometimes all four will process fine, other times one or more of the IDocs gop into error with the message
    There is no connection registered at the Messaging System for adapter type: File_http://sap.com/xi/XI/System
    If I select the messages in the monitor, I can sometimes get the message through, and sometimes it reverts back to this error, perhaps requiring a few attempts to process successfully. Sometimes the message just will not process.
    I am always resenfing four IDocs with the same data, so I really do not know what the problem could be.
    Any answers appreciated!
    BR,
    Tony.

    Hi,
    NEVER delete the files manually. As a admins we have to follow proper Uninstall and reinstall procedures as above one gentle man said.
    Here we will definately have some extra files also, like sapreorg, and backup file manually created if . Those also should be uninstalled properly.
    Also, we should maintain one back up copy of our file systems in each servers.
    just refer my system file structure, and proceed further.
    http://img158.imageshack.us/img158/591/bdfll0.jpg
    bye...

  • IDOC: Problem with data filter for IDOC extension field

    Hallo!
    I've created an idoc extension for the basic type DEBMAS06 that works fine. Now I want to use a data filter for one field ( company code ) of my segment. Every segment with a company code different from 100 should be filtered and not send to the other client. But what happend is that for all customers that have at least one company code different from 100, all segments including the one with cc 100 were deleted and a error "Segment ... does not exist for message type DEBMAS" appeared on the screen.
    Does anyone have any ideas about this problem?

    Not sure about changes to be made at the filtering options.
    An alternative would be sending the data to XI as it is and perform the mapping to remove the unnecessary segments.
    Disadvantage: Unnecessary processing of segment would be done at XI.
    Advantage: The integration logic would be completely handled by XI.
    Regards,
    Prateek

  • Inbound - IDoc problem

    Hi Friends,
    Can anybody help me . I am facing a problem in IDOC inbound processing.
    My scenario in SALES PER RECEIPT - POS like this: I have to read XML (From PC) file and i have to post it.
    I am using Idoc - WPUBON01. After reading XML file i used Function module to distribute - MASTER_IDOC_DSTRIBUTE.
    In we02 i checked Idoc is generating but status showing 29.
    So run the report RSEOUT00. But i am getting message like 'No idoc is selected for processing'.
    Plz help me what i have to do. I created port also.
    Regards,
    P. Kumar.

    Hi,
    sarath has told valid point..don't use master_idoc_distribute,instead use the bapi
    bapi_idoc_input1..
    plz check the sample code how to do with inbound idoc,as u have got the data ,u just need to call the bapi and post it..
    check the code and proceed..
    FUNCTION zdtsint052f_gpoms_to_sap_gm.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(INPUT_METHOD) LIKE  BDWFAP_PAR-INPUTMETHD
    *"     VALUE(MASS_PROCESSING) LIKE  BDWFAP_PAR-MASS_PROC
    *"  EXPORTING
    *"     VALUE(WORKFLOW_RESULT) LIKE  BDWF_PARAM-RESULT
    *"     VALUE(APPLICATION_VARIABLE) LIKE  BDWF_PARAM-APPL_VAR
    *"     VALUE(IN_UPDATE_TASK) LIKE  BDWFAP_PAR-UPDATETASK
    *"     VALUE(CALL_TRANSACTION_DONE) LIKE  BDWFAP_PAR-CALLTRANS
    *"  TABLES
    *"      IDOC_CONTRL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_STATUS STRUCTURE  BDIDOCSTAT
    *"      RETURN_VARIABLES STRUCTURE  BDWFRETVAR
    *"      SERIALIZATION_INFO STRUCTURE  BDI_SER
    *"  EXCEPTIONS
    *"      WRONG_FUNCTION_CALLED
    Purpose            :On recording the material consumption from       *
                        manufacturing tickets in GPOMS system, GPOMS     *
                        will report the data to the SAP system.Based     *
                        on this message, goods issue to the process order*
                        will be posted in SAP. This interface will       *
                        used for storage location managed materials      *
                        in SAP.                                          *
    Program Logic      :Loop at the data records of IDOC and to get the  *
                        Order number and SAP Movement type               *
                        If the Material document already exists for this *
                        Order number and Movement type then give error   *
                        else call standard FM 'BAPI_IDOC_INPUT1' to      *
                        Material Documents in SAP.                       *
    Declaration of Constants                                             *
      CONSTANTS :lc_item_create(25) TYPE c VALUE 'E1BP2017_GM_ITEM_CREATE',
                 lc_mbgmcr(6)       TYPE c VALUE 'MBGMCR'.
    Declaration of Variables                                             *
      DATA : lv_index TYPE sytabix,
             lv_retcode type sy-subrc.
    Declaration of Workareas                                             *
      DATA: lwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create,
            lwa_data         TYPE edidd, " Work area for IDOC
            lwa_control      TYPE edidc. " Work Area for control rec
    Read the control data information of idoc.
      loop at idoc_contrl INTO lwa_control Where mestyp = lc_mbgmcr.
    Extract the data from the segments.
        LOOP AT idoc_data INTO lwa_data
        WHERE docnum = lwa_control-docnum and
              segnam = lc_item_create.
    *->> Set the tabix of the internal table
          lv_index = sy-tabix.
    Move the Material Document Item Segment data
          MOVE lwa_data-sdata TO lwa_e1bp2017_gm_item_create.
    Modify the material document item data  internal table
          PERFORM sub_modify_idocdata changing lwa_e1bp2017_gm_item_create.
    *->> set the changed values to the IDOC SDATA
          MOVE  lwa_e1bp2017_gm_item_create TO lwa_data-sdata.
    *->> Modify the table
          MODIFY idoc_data FROM lwa_data index lv_index.
    Clear the Work areas
          CLEAR : lwa_data,
                  lwa_e1bp2017_gm_item_create.
        ENDLOOP.                                     "LOOP AT t_idoc_data
    Call the BAPI function module to create the
    appropriate Material Document
        CALL FUNCTION 'BAPI_IDOC_INPUT1'
          EXPORTING
            input_method          = input_method
            mass_processing       = mass_processing
          IMPORTING
            workflow_result       = workflow_result
            application_variable  = application_variable
            in_update_task        = in_update_task
            call_transaction_done = call_transaction_done
          TABLES
            idoc_contrl           = idoc_contrl
            idoc_data             = idoc_data
            idoc_status           = idoc_status
            return_variables      = return_variables
            serialization_info    = serialization_info
          EXCEPTIONS
            wrong_function_called = 1
            OTHERS                = 2.
        IF sy-subrc = 1.
          RAISE wrong_function_called.
        ENDIF.
      endloop.
    ENDFUNCTION.
    ***INCLUDE LZDTSINT052F_GPOMS_GMF01 .
    *&      Form  sub_modify_idocdata
    Modify the material document item data  internal table
    FORM sub_modify_idocdata
    CHANGING pwa_e1bp2017_gm_item_create TYPE e1bp2017_gm_item_create.
    contant declaration
      CONSTANTS: lc_261(3) TYPE c VALUE '261'.
      DATA : lv_aplzl LIKE resb-aplzl,
             lv_aufpl LIKE resb-aufpl,
             lv_subrc LIKE sy-subrc,
             lv_charg LIKE resb-charg,
             lv_uom LIKE pwa_e1bp2017_gm_item_create-entry_uom.
      CLEAR: pwa_e1bp2017_gm_item_create-reserv_no,
             pwa_e1bp2017_gm_item_create-res_item.
    *->> Get SAP storage bin & Storage type from the Z table
      SELECT lgtyp lgpla
        INTO (pwa_e1bp2017_gm_item_create-stge_type,
              pwa_e1bp2017_gm_item_create-stge_bin)
         UP TO 1 ROWS
        FROM zdtsint050_sttyp
         WHERE zstorage_typ = pwa_e1bp2017_gm_item_create-stge_type
          AND  zstorage_bin = pwa_e1bp2017_gm_item_create-stge_bin.
      ENDSELECT.
      IF sy-subrc NE 0.
        CLEAR: pwa_e1bp2017_gm_item_create-stge_type,
               pwa_e1bp2017_gm_item_create-stge_bin.
      ENDIF.
      PERFORM get_oper CHANGING pwa_e1bp2017_gm_item_create.
    Get the Reservation number and Reservation item number
    basing on the idoc data.
      SELECT rspos werks lgort
             INTO (pwa_e1bp2017_gm_item_create-res_item,
                  pwa_e1bp2017_gm_item_create-plant,
                     pwa_e1bp2017_gm_item_create-stge_loc)
             FROM resb
             UP TO 1 ROWS
             WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
             AND   matnr = pwa_e1bp2017_gm_item_create-material
             AND   charg = pwa_e1bp2017_gm_item_create-batch
             AND   aufnr = pwa_e1bp2017_gm_item_create-orderid
             AND   vornr = pwa_e1bp2017_gm_item_create-activity
             AND   bwart = lc_261.
      ENDSELECT.
      IF sy-subrc <> 0.
    Start of insertion for R31K993797
        CLEAR lv_charg.
        SELECT rspos werks lgort
             INTO (pwa_e1bp2017_gm_item_create-res_item,
                  pwa_e1bp2017_gm_item_create-plant,
                     pwa_e1bp2017_gm_item_create-stge_loc)
             FROM resb
             UP TO 1 ROWS
             WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no
             AND   matnr = pwa_e1bp2017_gm_item_create-material
             AND   charg = lv_charg
             AND   aufnr = pwa_e1bp2017_gm_item_create-orderid
             AND   vornr = pwa_e1bp2017_gm_item_create-activity
             AND   ( splkz = 'X' or
                     splkz = space )
             AND   bwart = lc_261.
        ENDSELECT.
        IF sy-subrc <> 0.
    End of insertion for R31K993797
          SELECT SINGLE werks lgort
                INTO (pwa_e1bp2017_gm_item_create-plant,
                       pwa_e1bp2017_gm_item_create-stge_loc)
                FROM resb
                WHERE rsnum = pwa_e1bp2017_gm_item_create-reserv_no.
          CLEAR : pwa_e1bp2017_gm_item_create-reserv_no,
                  pwa_e1bp2017_gm_item_create-res_item.
        ENDIF.
      ENDIF.
    get SAP UOM
      SELECT SINGLE zsap_uom
                    INTO lv_uom
                    FROM zca_uom_conv
                    WHERE zext_uom = pwa_e1bp2017_gm_item_create-entry_uom.
      IF sy-subrc = 0.
        pwa_e1bp2017_gm_item_create-entry_uom = lv_uom.
      ENDIF.
    ENDFORM.                    " sub_modify_idocdata
    *&      Form  get_oper
         Get the operation
         <--P_PWA_E1BP2017_GM_ITEM_CREATE_RE  Segment
    FORM get_oper  CHANGING p_pwa_e1bp2017_gm_item_create TYPE
                   e1bp2017_gm_item_create.
      DATA : l_aufpl LIKE afko-aufpl,
             l_aplzl LIKE afvc-aplzl.
      REFRESH : i_op.
      UNPACK p_pwa_e1bp2017_gm_item_create-orderid TO
             p_pwa_e1bp2017_gm_item_create-orderid.
    Get the reservation and routing number for the order
      SELECT SINGLE
             rsnum
             aufpl
             FROM afko
             INTO (p_pwa_e1bp2017_gm_item_create-reserv_no,
                   l_aufpl)
             WHERE aufnr = p_pwa_e1bp2017_gm_item_create-orderid.
      IF sy-subrc = 0.
        CALL FUNCTION 'CONVERSION_EXIT_NUMCV_INPUT'
          EXPORTING
            input  = p_pwa_e1bp2017_gm_item_create-activity
          IMPORTING
            output = p_pwa_e1bp2017_gm_item_create-activity.
      ENDIF.
    ENDFORM.                    " get_oper
    i have modifeid the incoming data,in ur case its not needed ,only first few lines until the bapi u have to see..if u have any query let me know..
    Regards,
    Nagaraj

  • IDOC Problem From 46C To ECC6 For ORDERS05

    Hello
    I am trying to generate 46C version ORDERS05 basic type from ECC6 700 version.
    Within WE20(Partner Profiles) I have set the Seg. release in IDOC type to 46C to generate the old 46C segment. When I run my test again the IDOC that was generated is still version 700.
    Thanks for the help.
    Joe

    Gentlemen:
    The problem around this statement:
    ASSIGN (w_field) TO <fs_field>
    is explained as follows:
    1. In ABAP language, there are two ways for assigning a new value to a field-symbol.
    - Sentence: ASSIGN (values) TO <my_field_symbol>.
      In this case, the <my_field_symbol> receives from (w_field) the data type and value content of this variable. So, we keep that a FSymbol is assigned and, at the same time, receives an initial value.
    - Sentence: <my_field_symbol> = '/' or <my_field_symbol> = my_var.
      In this way, we only pass the content of the variable next to = sign. But before this, the field-symbol must had been assigned (using ASSIGN statement), in another case, the compiler raises an exception.
    Following the example of Federico... I think he tried to assign a field like this (please, supose the program imports the structure of a database table with a standard function, into a internal table which is looped by the work area w_field ):
    - If w_field contains 'BKPF-WERKS', so sentence ASSIGN will affect the field symbol, passing to this the data type and current content of table field BKPF-WERKS.
    - If w_field contains 'BKPF-.INCLUDE': *the column .INCLUDE obviously is not associated with a data type... so our statement ASSIGN... TO... never pass any data type or value to our field-symbol. So that, this field is never initialized properly, and when inmmediately you try to execute something like this: <my_field_symbol> = '/', the game (program) is over.. XD
    I hope this post was helpful for anyone...
    Best Regards!!
    RRG
    ABAPer(u) - EVOLution

  • Message ORDERS05 IDOC problem

    Hello everyone!!!
    My name is Rocio, I'm a new developer on IDOCS and I have a problem with de message ORDERS05.
    I'm forming an STANDARD INBOUNT IDOC for Transaction VA02
    I want to put a field (Assignment - ZUONR ) that is on Header>Accounting. in VA02(Transaction).   
    I use the segment E1EDK02             QUALF       017  : Assignment Number
    But when I generated my idoc, this field is ok, but when I go to see the order..this field doesn't appear  its  empty...
    Can anyone help me because i don´t why is this happened?
    And i need this file with an IDOC value. because we are going to use this value in the invoice.
    Thanks for your help!!!
    Title was edited by:
            Alvaro Tejada Galindo

    Hi experts,
    I take this post to ask a new (added) question:
    We would like to know how to insert a value for ZUONR vía IDOC_INPUT_ORDERS
        We already know that we must implement user exit EXIT_SAPLVEDA_001 in order to get from one segment of the ORDERS IDOC  the value we want to insert into ZUONR.
        But when we analyze the following logic of the function module we see that the way SAP is generating the order is vía call transaction of VA01, and it seems that there's no vbak-zuonr field in the bdcdata structure passed to the call transaction.
        We assume that we need to implement the user exit EXIT_SAPLVEDA_002 to append the vbak-zuonr field with the proper value to the bdcdata structure, but we would like to know if there is some previous note explaning the way to do it or if there's other easier way to reach the same result.
    Thanks.

  • IDOC PROBLEM (STATUS - 51)

    Hi Gurus,
    I have two problems that we really need corrected as soon as possible.
    1. Before the upgrade last friday night, outstanding IDOCs (51 error) were listed as IncomingInvoices. Now, they are being listed as zBUS2081.
    Application document not posted 51
    1.Goods Movement
    2.zBUS2081
    3.service entry
    please change it from zBUS2081 back to IncomingInvoices.
    2. We've been dealing with an annoying issue since the last major upgrade to SAP. That problem is refreshing. We'll be in transaction BD87, make a correction to an IDOC, back out of the IDOC, push the refresh button, and then we wait.....and wait.....and wait....until we go to the top left, and click the stop transaction option. Then we have to double click back on BD87, get our variant (again), resort the errors, then we're able to click on the edited IDOC option to process the corrected IDOC. Before the last major upgrade, we could make our changes, click the refresh button and BAM the screen would be updated immediately. This is the way it should be working. Would you please look into whatever is causing it to stall? It takes up quite a bit of time to stop the transaction, go back in, refetch the variant, etc. The extra work is unnecessary.
    Provide the solution asap.
    Regards,
    Chiranjeevi.

    Please stick to the Rules.
    1. Post in the right forum - for IDOCs that will data transfer - now moved for you.
    2. Do not say "ASAP" or otherwise express that you're in a hurry.  You maybe - we're not.  Any answers are made out of goodwill.  It is considered by many very rude to try to hurry people up.
    3. Don't post the same question in more than one forum.  I've rejected the other one.
    Did you copy and paste these issues out of your client/employers help desk?
    matt

Maybe you are looking for