IDOC related Query

hi
i am adding one field VBKD-IHREZ in the IDOC.
i have added following code in the Include which exists inside a User exit corresponding to fill Idoc Structure to BDC data structure.
z1edk05 is the new segment which i have add in z1orders through we30.
the code is below which i have added in Include.
when i activate this code i got error
the field z1edko5 is unknown. there are similer fields with name "z1edk03","z1edk01"
include LVEDACOM.
in UNICODE programs the character "-"  can not appears in names as it does appear in the names 'IVBEP-POSNER'
if not z1edk05-ihrez is initial.
  perform zzdynpro_setvalue tables dxbdcdata
                             using 'BDC_OKCODE' EQ '=SICH'.
  PERFORM zzdynpro_new tables dxbdcdata
                         using 'SAPMV45A' '4002'.
  perform zzdynpro_setvalue tables dxbdcdata
                         using 'VBKD-IHREZ' z1edk05-ihrez.
  perform zzdynpro_setvalue tables dxbdcdata
                         using 'BDC_OKCODE' 'BACK'.
ENDIF.
regards
Atul

Hi,
Check if you released your idoc. Have you added the extended idoc to the message type in tcode we82. Also check if the partner profiles contain the zidoc in extension.
And as you have mentioned....it is showing 'o' in the error but your segment name contains 'zero(05)'. So please check it once.
Regards,
Sumalatha

Similar Messages

  • IDOC related to employee deta

    Hello,
    Can anyone send me an example in IDOC related to employee details
    What are the steps to be followed for triggerring IDoc.
    Regards,
    Libin

    Hi Libin,
    As for finding your needed idoc.
       1. Choose the transaction WE09 (SAP Menu ® Tools ® IDoc Interface/ALE ® Administration ® Services ® IDoc Search by Contents ® WE09).
       2. Choose the Data Source button to specify whether you want to search for IDocs from the database or the archive (or both) .
       3. If you have set the u201AArchiveu2019 flag, you can select files in the archive information system, or  manually.
    Regarding to the steps to trigger an idoc , search SDN. But before that you will need to do ALE settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b815e43d711d1893e0000e8323c4f/frameset.htm
    Rgds
    joel
    Edited by: joel trinidade on Feb 23, 2009 5:46 PM

  • Idoc related issuse

    Dear all,
    I have some problem in idoc related issuses.i preparing technical documents from FS.
    There are some filds coming from the client system to sap systmm,.there r nearly 7 field(parent).
    And 9 fields (childs).this is from cls to WBI . I have to conclude TO fileds fromWBI to sap.
    How can I pick the fields , shall I send all the fields or some paticuler fields only.. can any one …
    regars
    vc

    Hi Libin,
    As for finding your needed idoc.
       1. Choose the transaction WE09 (SAP Menu ® Tools ® IDoc Interface/ALE ® Administration ® Services ® IDoc Search by Contents ® WE09).
       2. Choose the Data Source button to specify whether you want to search for IDocs from the database or the archive (or both) .
       3. If you have set the u201AArchiveu2019 flag, you can select files in the archive information system, or  manually.
    Regarding to the steps to trigger an idoc , search SDN. But before that you will need to do ALE settings.
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b815e43d711d1893e0000e8323c4f/frameset.htm
    Rgds
    joel
    Edited by: joel trinidade on Feb 23, 2009 5:46 PM

  • The workbook report no authorization, but related query can show part data

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

  • Multi-part related query reports

    http://download-east.oracle.com/docs/html/B10310_01/orbr_concepts1.htm#1012365
    Can someone provide me better info about 'Multi-part related query reports '

    Hi,
    yes you can have multiple query in your report. So you have multiple groups in your data model. Then you must put multiple repeating frames in your layout in order to extract data from your queries, selecting the desired group in the source property of your repeating frame.
    Bye
    Raffy

  • Any BAPI or IDoc related to Warehouse Bin Master conversion

    hi all,
    Is there any BAPI or IDoc related to warehouse Bin Master conversion?
    Regards,
    Asha

    There is no standard BAPI / IDOC for this.
    Created custom BAPI for this.

  • What is the need of xi in idoc to idoc related scenarios

    Hi all,
                                                                                    Can any one explain me what is the need of xi in idoc to idoc related scenarios.\
    we can Send Idoc with out Xi right?                                                                               
    Thanks,
    Srinivas

    IDOC to IDOC Scenario
    pass through idoc to idoc scenario
    IDoc to IDoc Scenario with High Volumes
    SM58 Error For IDOC to IDOC Scenario

  • Regarding the Message Type and IDOCS related to IS-Banking

    Hi Gurus,
    can any one provide me the Message Type and IDOCs related to IS-Banking.
    Regards.
    Kiran kumar.

    Hi,
    Refer this link,
    http://www.stylusstudio.com/edifact/d04b/BANSTA.htm
    Hope it helps you.

  • How can I related Query name with Query elements?

    Hello gurus!
    I am working with BI7, content technical, well I need to find out a solution where I can related Query name with query elements (KYF, CKY, Restricted Key Figures, var, etc)
    In master data 0tctquery, exist the query element, but, I can not related with object are from what query...
    Do you know how I can do it??? some solution???
    Best Regards

    "it is impossible to relate both tables" ???
    hmmm... these are exactly the tables the Query Designer uses to "build" up the query... so trust me, they do relate
    now to get this information in an InfoCube is a totally different thing... how do you expect to report on this if you should get it in an InfoCube? let's take a simple example... assume you have a query (QUERY_1) which looks like:
                                      Sales  Sales
    Sales Org Customer    Qty      Value
    1000         ABC           10 PC  500 €
    1000         DEF             5 PC  250 €
    in your Cube you would get:
    QueryName  QueryElement
    QUERY_1    0SALESORG
    QUERY_1    0CUSTOMER
    QUERY_1    ZSLSQTY
    QUERY_1    ZSLSVAL
    if you have free characteristics, you'll add more lines... same for variables, CKFs, RKFs, conditions, ...
    I guess it would be better to create a little ABAP report using the above tables (oh, you'll be needing a lot more tables if you wish more detail)

  • Converting Relational query to XML

    set serveroutput on
    This is the code of a query to convert a relational query to xml. This code runs fine when I place the where condition at the end. e.g. where h.hospital_id=1. however when i place no such condition it begins returning errors such as
    set serveroutput on
    set long 10000000
    set linesize 50000
    set lines 20000
    set pagesize 0
    set pages 5
    set feedback off
    set head off
    SET TRIMSPOOL ON
    set long 200000000
    set linesize 32000
    set pagesize 0
    set pages 0
    set feedback off
    set head off
    Select XMLELEMENT("have:HospitalStatus",XMLAttributes('urn:oasis:names:tc:emergency:EDXL:HAVE:1.0 edxl-have_cs01.xsd' AS
                                      "xsi:schemaLocation",
                                              'urn:oasis:names:tc:emergency:EDXL:HAVE:1.0' AS
                                      "xmlns:have",
                                    'http://www.georss.org/georss' AS
                                      "xmlns:n3",
                                    'http://www.opengis.net/gml' AS
                                      "xmlns:gml",
                                    'http://www.w3.org/2001/XMLSchema-instance' AS
                                      "xmlns:xsi",
                                    'urn:oasis:names:tc:ciq:xal:3' AS
                                      "xmlns:xal",
                                    'urn:oasis:names:tc:ciq:xnl:3' AS
                                      "xmlns:xnl",
                                    'urn:oasis:names:tc:ciq:xpil:3' AS
                                      "xmlns:xpil"                                        
         xmlagg(                    
         xmlelement("have:Hospital",
         xmlforest
              (     h.hospital_id,          
                   xmlforest(
                   xmlforest(
                   h.name,               
                   h.info,          
                   h.addresses     ,          
                   h.contact_numbers) as "OrganizationInformation",     
                   xmlforest(
                   h.geo_location) as "OrganizationGeoLocation",
                   h.comments) as "Organization"
                   xmlelement("have:EmergencyDepartmentStatus",
                   (select xmlagg(
                   xmlforest(
                             eds.date_updated,
                   xmlforest(
                             eds.ems_traffic_status,
                             eds.ems_traffic_reason) as "EMSTraffic",          
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_capacity
                        ) as "EMSCapacity",     
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_census) as "EMSCensus",
                             xmlforest(
                             eds.ems_amb_offload_status,
                             eds.ems_amb_offload_min) as "EMSAmbulanceStatus",
                             xmlforest(
                             eds.ems_air_offload_status,
                             eds.ems_air_offload_min )as "EMSAirTransportStatus"
                   from EmergencyDepartmentStatus eds,TriageCode tc,TriageCodeListURN tcl
                   where eds.hospital_id = h.hospital_id and tc.hospital_id = h.hospital_id and tcl.hospital_id = h.hospital_id)),     
                             xmlelement("have:HospitalBedCapacityStatus",
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status,
                             mb.available_count,
                             mb.baseline_count,
                             mb.additional_24hr,
                             mb.additional_72hr) as "Capacity",
                             mb.comments
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no NOT IN(select mb.bed_no from MainBeds mb, SubBeds sb where mb.bed_no=sb.bed_no )
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no ,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status
                                                 ) as "Capacity",
                             mb.comments
                                  ),(select xmlagg(
                   xmlforest(
                                  sb.date_updated,
                                  sb.bed_no,
                                  sb.sub_bed_no,
                                  xmlforest(
                                  sb.capacity_status,
                                  sb.available_count,
                                  sb.baseline_count,
                                  sb.additional_24hr,
                                  sb.additional_72hr) as "Capacity",
                                  sb.comments
                                  )from SubBeds sb  where mb.bed_no = sb.bed_no and sb.bed_no=h.hospital_id )
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no in (select unique mb.bed_no from MainBeds md, SubBeds sb where sb.bed_no=mb.bed_no))
                   xmlelement("have:ServiceCoverageStatus",
                   (select xmlagg(
                   xmlforest(
                             scs.date_updated,
                             scs.burn,
                             xmlelement("CardiologySubType",
                                  xmlforest(scs.cardiology_invasive,
                                  scs.cardiology_non_invasssive)) as "CardiologyIndicator",
                             scs.dialysis,
                             scs.emergency_dept,
                             scs.hyperbaric_chamber,
                             scs.infectious_diseases,
                             scs.neonatology,
                             xmlforest(xmlforest(
                                  scs.neurology_invassive,
                                  scs.neurology_non_invasssive) as "NeurologySubType") as "NeurologyIndicator",
                             xmlforest(xmlforest(
                                  scs.obgyn_with_labor,          
                                  scs.obgyn_without_labor) as "OBGYNSubType")as "OBGYNIndicator",
                             scs.opthalmology,
                             scs.orthopedic,
                             scs.pediatrics,
                             xmlforest(
                                  xmlforest(scs.psychiatry_adult_general,
                                  scs.psychiatry_pediatric) as"PsychiatrySubType")as "PsychiatryIndicator",
                             xmlforest(
                                  xmlforest(
                                  sst.date_updated,
                                  sst.general_ward,
                                  sst.adult_general,
                                  sst.pediatrics,
                                  sst.orthopedics,
                                  sst.nuero_surgery,
                                  sst.facial,
                                  sst.cardio_thoracic,
                                  sst.hand,
                                  sst.reimplantation,
                                  sst.spinal,
                                  sst.vascular,
                                  sst.anesthesia) as "SurgerySubTypes") as "SurgeryIndicator",
                             xmlforest(xmlforest(
                             scs.ambulance_services,
                             scs.air_transport_services) as "TransportServicesSubType") as "TransportServicesIndicator",
                             xmlforest(xmlforest(
                             scs.trauma_service,
                             scs.trauma_service_level) as "TraumaCenterServicesSubType")as "TraumaCenterServicesIndicator"
                   from ServiceCoverageStatus scs, SurgerySubTypes sst
                   where scs.hospital_id = h.hospital_id and sst.hospital_id = h.hospital_id)),
                   xmlelement("have:HospitalFacilityStatus",
                   (select xmlagg(     
                   xmlforest(
                             hfs.date_updated,               
                             hfs.hospital_eoc_status,
                             hfs.hospital_eoc_plan,          
                             hfs.clinical_status,
                             xmlforest(
                                  dc.date_updated,
                                  dc.decon_capacity_status,
                                  dc.amb_patients_capacity,
                                  dc.non_amb_patients_capacity) as "DeconCapacity",
                             xmlforest(
                             mc.date_updated,
                             mc.morgue_capacity_status,
                             mc.morgue_capacity_units) as "MorgueCapacity",
                             hfs.facility_status,               
                             hfs.security_status,     
                             xmlforest(
                                  ah.date_update,
                                  ah.admissions,
                                  ah.discharges,
                                  ah.deaths) as "Activity24hr",
                             hfs.comments,
                             hfs.clinical_operations,     
                             hfs.resources_information
                   from HospitalFacilityStatus hfs,Activity24hr ah,MorgueCapacity mc,DeconCapacity dc
                   where hfs.hospital_id = h.hospital_id and ah.hospital_id = h.hospital_id and mc.hospital_id = h.hospital_id
                   and dc.hospital_id = h.hospital_id)),     
                   xmlelement("have:HospitalResourceStatus",
                   (select xmlagg(
                   xmlforest(
                             hr.date_updated,
                             hr.staffing,
                             hr.facility_operations,
                             hr.clinical_operations,     
                             hr.comments
                   from HospitalResourceStatus hr
                   where hr.hospital_id = h.hospital_id)),
              xmlforest(h.last_update_time) as "UpdateTime"
              ))).extract('/*')
    from hospital h;__________________________________________________________________________________________________________
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "HOSPITAL_EOC_STATUS" does not match start-element tag "have:HospitalStatus"
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 111
    Edited by: 872489 on 14-Jul-2011 03:59
    Edited by: 872489 on Jul 14, 2011 9:11 AM
    Apologies for lack of formatting earlier

    Please repost this and use the tag with some decent formatting.
    See the FAQ Posting Guidelines on the main page of this XMLDB OTN Forum                                                                                                                                                                                                                                                                                               

  • IDOC meta deta refresh related query

    Hi ,
    We are dealing with IDOC to file scenario.  The scenario is created and transported to Production .
    Suppose after that we have to add extra field in the IDOC .The ABAP guys  created the new IDOC in SAP system we deleted the old IDOC imported new one  in IR (dev) and done the mapping initally the field was not coming  but after  meta deta refresh (IDX2) the field has succesfully come in PI and sent to destination . We have transported the change ( IDOC and the message mapping ) to other env . Now do we have to refresh the meta deta manually in that environment also? or can we transport the meta deta also in other environment  to avoid manually deletion/updation of meta deta in evry env .
    Kindly update me
    Regards,
    Saurabh

    thanks again
    Even we were also have the same understanding that we don't need to do any thing extra for meta deta refresh in other env.
    but recently we are facing issue in pre prod that  the IDOC(in which extra field has been added ) get struck in ECC and does not come to PI untill we have not manually uploaded the meta deta .  so the client is asking that instead of manual deletion/updation of meta deta can we transport the meta deta or make the process automated .
    Regards,
    Saurabh

  • IDOC  related question

    Hi,
    How to extract the content from IDOCs.e.g mautiple idocs are comming.we need to retrive the company ID from all the IDOC.So Please tell me how to  extract.
    Regards,
    Suchitra

    Hi Suchitra,
    this can be done using BPM were we can differentiate depending upon the company ID value
    go to this link it would be helpfull
    Posting multiple IDocs with Acknowledgement
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=multiple+idocs&adv=false&sortby=cm_rnd_rankvalue
    Thanx
    Sampath

  • Idoc Related queries

    1.     How can we view and rectify the errors or warnings caused ,while we create a new idoc ,which may be an extension of an existing basic Idoc type(at Transaction code – we30)?
    2.     How can we delete an Idoc created,if its already been released (at Transaction code we30) and configured(at transaction code we82)?
    3.     Is that mandatory that the check box ‘Mandatory’ field should always be checked,whenever we create(extend) a new segment to an existing segment(at transaction code we30)?
    4.     On what basis,we can identify that “To which existing segment - we can append our needed segment(new segment if any to be appended)”?

    Hi Nagarajan,
      Answers for your questions:
    1)How can we view and rectify the errors or warnings caused ,while we create a new idoc ,which may be an extension of an existing basic Idoc type(at Transaction code – we30)?
       WE30 is created for IDOCs. First set break point related user exit.For testing WE19. Just enter that error IDOC number in WE19 and press F8. Then it will display the segments. Then press /H in the command box and press inbound function module push button (Just side of inbound push button). Then it will open in debug mode. we can test.
    2. How can we delete an Idoc created,if its already been released (at Transaction code we30) and configured(at transaction code we82)?
    Yes it is possible to delete hte IDOC which is released from our system, i think thorugh remote function but i am not sure.
    3. Is that mandatory that the check box ‘Mandatory’ field should always be checked,whenever we create(extend) a new segment to an existing segment(at transaction code we30)?
    Based on the requirement we can select that check box. suppose it u upload the data for MM01 t-code then observe what are all the manditory feilds in that screen. Based on that choose mandotory check box for proper fields in the segment.(In MM01 suppose meterail number is manditory then while creating segment select that manditory chk box for MATNR)
    4. On what basis,we can identify that “To which existing segment - we can append our needed segment(new segment if any to be appended)”?
    Based on the basic IDOC type and given information from the user.
    Hope this helps you, reply for queries,
    Regards.
    kumar.

  • IDoc related doubt .......Please   see..

    Hi all,
    What is message in Idoc? Please tell in layman terms. Is it part of the data records? Please point me to related files or threads.
    Thanks,
    Charles.

    Hi,
    The Message type are mornally assign to SAP document type (IDOC).  A message type represents a business function ( Purchase order data, Invoivce data etc). The technical structure of the message type is the IDoc type.
    An <b>IDoc type</b> can be implemented for various "logical" <b>messages</b>; one message can also be assigned to different IDoc types (m:n relationship).
    The message is defined by the values for <b>message type (required),</b> <b>message code</b> (optional) and <b>message function</b> (optional). These three fields belong to the key fields in the partner profiles, which are used, for example, to determine inbound processing. If the 'Message type' field is not maintained (e.g. in the case of a control record from Release 2.1, in which MESTYP did not exist), the IDoc Interface uses the value from STDMES (EDI message type).
    <b>Example</b>                                                            
    The message ORDERS (= message type) identifies purchase orders (outbound) and sales orders (inbound). 
    Check transaction <b>WE81,</b> for Message type in SAP.
    Also, follow this link for more infomation related to IDOC processing
    http://help.sap.com/saphelp_46c/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
    Check this lin for information about "Distribution Using Message Types".
    http://help.sap.com/saphelp_46c/helpdata/en/78/2174a351ce11d189570000e829fbbd/frameset.htm
    Let me know if you need any other information.
    Regards,
    RS

  • IDOC related to workflow task

    Is there any table or report which gives IDOC nos related to workflow task?

    Sreedevi, it depends what you want (where you start from), so please be more specific in your question next time (or if this doesn't answer your question).
    If you have a work item number and want to know the IDoc number you can use function module SAP_WAPI_OBJECTS_IN_WORKITEM to get a list of all object references. Then you have to process it from there. You can make a flexible solution which is compatible with future added IDoc types by checking the object type of each object returned and traversing the inheritance hierarchy until you get to object type IDOC. Then you know it is an IDoc, and you can find the IDoc number as the key of the object. Or you can hardcode supported object types using a CASE or IF statement. The flexible solution would be much more fun to program in my opinion.
    If you have an IDoc number and want to find work items you have to go the other way. That means starting with object type IDOC, finding all the inherited object types and for each of these using function module SAP_WAPI_WORKITEMS_TO_OBJECT. Again, another possibility is to hardcode the list of object types you want to check.
    The table Rose told you about, HRS1201, contains no IDoc numbers, but it contains all the tasks with the methods they use. So actually you can use that to find all the object types you need to check (whether they are inherited from IDOC), since all work items will refer to a task definition.

Maybe you are looking for