Idoc status from 60 to 68

Hi,
     We have to change the status of the Idoc from 60 to 68 without deleting the Idoc. Immediate help is appreciable.
Thanks.
S.S

This adds status to the existing Idoc, however, I doubt you can change the status of an Idoc No.
data:idoc_data type table of edidd.
data:idoc_control type edidc.
data:idoc_status type edi_ds.
data: v_docnum type EDIDC-DOCNUM value '0000000000378029'.
CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_PROCESS'
  EXPORTING
*   DB_READ_OPTION                 = DB_READ
    document_number                = v_docnum
*   ENQUEUE_OPTION                 = SYNCHRONOUS
* IMPORTING
*   IDOC_CONTROL                   =
EXCEPTIONS
   DOCUMENT_FOREIGN_LOCK          = 1
   DOCUMENT_NOT_EXIST             = 2
   DOCUMENT_NUMBER_INVALID        = 3
   DOCUMENT_IS_ALREADY_OPEN       = 4
   OTHERS                         = 5
IF sy-subrc <> 0.
ENDIF.
*CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
*  EXPORTING
*    document_number                     = v_docnum
**   ALREADY_OPEN                        = 'N'
* IMPORTING
*   IDOC_CONTROL                        = idoc_control
*  tables
*    idoc_data                           = idoc_data
* EXCEPTIONS
*   DOCUMENT_FOREIGN_LOCK               = 1
*   DOCUMENT_NOT_EXIST                  = 2
*   DOCUMENT_NOT_OPEN                   = 3
*   STATUS_IS_UNABLE_FOR_CHANGING       = 4
*   OTHERS                              = 5
*IF sy-subrc <> 0.
*ENDIF.
idoc_status-docnum = v_docnum.
idoc_status-status = '68'.
idoc_status-logdat = '20030804'.
CALL FUNCTION 'EDI_DOCUMENT_STATUS_SET'
  EXPORTING
    document_number               = v_docnum
    idoc_status                   = idoc_status
* IMPORTING
*   IDOC_CONTROL                  =
EXCEPTIONS
   DOCUMENT_NUMBER_INVALID       = 1
   OTHER_FIELDS_INVALID          = 2
   STATUS_INVALID                = 3
   OTHERS                        = 4
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'EDI_DOCUMENT_CLOSE_PROCESS'
  EXPORTING
    document_number           = v_docnum
*   BACKGROUND                = NO_BACKGROUND
*   NO_DEQUEUE                = ' '
* IMPORTING
*   IDOC_CONTROL              =
* EXCEPTIONS
*   DOCUMENT_NOT_OPEN         = 1
*   FAILURE_IN_DB_WRITE       = 2
*   PARAMETER_ERROR           = 3
*   STATUS_SET_MISSING        = 4
*   OTHERS                    = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Subramanian V.

Similar Messages

  • How to change the IDOC Status from 30 to 03

    Hi Friends,
    In the Partner Profiles Collect IDOCS option is Selected and the Output mode is 4.
    In my Custom Program i am Using the Function Module MASTER_IDOC_DISTRIBUTE to generate the IDOCs
    I am getting the IDOCs of Status 30.
    then in my Custom Program, I am Submitting the IDOCs to RSEOUT00 program.
    to change the IDOC status from 30 to 03.
      SUBMIT rseout00 USING SELECTION-SCREEN '1000'
                   WITH docnum  IN  gt_range_idocs
                   WITH p_compl EQ 'Y'
                   AND RETURN.
    but still i am not getting the IDOCs of changed status.
    I need to get the Changed IDOC status and if the IDOC status is not changed then I need to generate an Error file for the IDOCs data and send that data to customers as a mail.
    so my requirment is to call the RSEOUT00 in the Custom Program and Change the IDOCs Status to 03.
      When i am Executing the RSEOUT00 Indidually by giving the IDOCs numbers, then the IDOCs Status is going to change to 03 from 30.
    Kindly Guide me how to proceed furthur
    Thanks in Advance,
    Ganesh

    Thanks Shrishit,
    RC1_IDOC_SET_STATUS changing the Status from 30 to 03.
    Its fine, But my Question is will IDOC Data will be reached to XI Server or not.??
    means is the functionality of this Program is same as the RSEOUT00.
    MY job is to change Status from 30 to 03 only
    and then Check the Status of those IDOCs, and if the IDOC is not sended to XI  i.e.;03 status, then I need to send the Details of IDOC (i.e.; data in filed IDOC) to Customer Mail ID through an Attachement.
    I hope you Understood my AIM, why I need to change the Status in my Custom Program only, by submitting IDOCs to this report .
    Kindly waiting for your reply,
    Thanks in Advance,
    Ganesh

  • Force an IDoc status from a conversion exit

    Hi,
    I have created a conversion exit (FM CONVERSION_EXIT_*_INPUT / tcode BD79) for outbound IDoc FIDCC2. It converts in-values into other out-values by using a z-table. If the in-value is not found in the z-table, the IDoc should not go into status 03 (Data passed to port OK) but remain in error status instead. How/where can this error status be forced?
    Regards, Jan

    I got you.
    From the report, I'll go to IDoc(AAAA) display and will change it. Once I saved he IDoc, I'll have a new number xxxx with status 70. I cannot process it. But the status of original IDoc will turn from 51 to 69(Yellow - Can be processed). I have to process this IDoc from here.
    But As soon as i save the IDoc, it's kicking me out of the IDoc and report.
    From the program, I am not sure where I'll be in the program at this point.
    Any inputs aRs.
    Thanks,
    Matt
    Edited by: Creasy Matthew on Sep 16, 2009 11:13 PM

  • How to get IDoc Status from WCF Service Adapter?

    I have successfully transfered a strong typed Idoc to SAP using a BizTalk WCF Service Adapter.  I did so based on this example:  [http://msdn.microsoft.com/en-US/library/cc185231(v=BTS.10).aspx].  We are using the IDoc to create a purchase order.  The IDocClient.Send(idoc, ref guid); method returns only a guid.  I can translate that using the SapAdpaterUtilities to a transaction ID.  When I look at the Idoc in WE02, I can see that it has status information which includes the purchase order number.  Is there any way for me to capture this status information in my .Net application when I send the IDoc?  Can I query the transaction ID?  Or do I just need to get the last PO Number through an RFC?
    Scott

    I ended up using the SAP .Net Data Provider in the Biztalk Adapter Pack to retrieve the PO Number.  Essentially when you pass the IDoc you won't get anything in return unless the file transfer fails.
    Scott

  • IDOC status at 30, but in we05 it is 03

    Hello Gurus!!
    My program generates an IDOC and as soon as the idoc is generated it the status is 03 then i have todo something else.
    Within the program when i am cheking the status is 30 but actually in transaction we05 the status is 03.
    I have cheked the partner profiles and transfer_idocs_immeadiately has already been selected.
    I have already gone thru the forum but no valid solution was given,
    There is no need to change any ALE configurations / port configurations because everything just work fine. It is only that within the program i am not able to catch the status 03. the proram is not waiting untill the idoc status is 03. it is capturing only the status 30.
    Is there any thing that i can do within the program? should i capture the idoc number and then check the idoc status from EDID4?
    Please answer o this questions ASAP.
    Regards.

    Initially when you create the outbound idocs then status is 30. then you have to run the program RSEOUT00 to process the idoc then after the processing the status changes to 03.
    But the Program RSEOUT00 is optional. In the partner profile (WE20) If you select the option  'Collect Idocs', then you have to schedule the program RSEOUT00 to process the Idocs otherwise if you have choose the option 'Transfer idoc immediately', you don't need to do anything.
    Thanks,
    Srinivas

  • IDOC  STATUS 29 to 68

    Hi all,
    Customer request is change idoc status from 29 to 68.
    68 = no further processing inbound side
    31 = no further processing outbound side
    if i change status of idoc from 29 to 68 using Fn module IDOC_STATUS_WRITE_TO_DATABASE
    Data of idoc is vanishing.
    I observed that if i change status of idoc from 29 to 31 then there is no data loss in idoc with same Fn module.
    Is there any way to change idoc status from 29 to 68 without losing the Idoc data.
    anyway for both 68 & 31 meanings are same , but customer requires 29 to 68.
    if u have any idea please suggest me.

    Hi Suneel,
    If the program does't exits then try this ...
    DATA: L_EDIDC_TAB       LIKE EDIDC      OCCURS 1 WITH HEADER LINE,
          L_IDOC_STATUS_TAB LIKE BDIDOCSTAT OCCURS 1 WITH HEADERLINE,
          L_IDOC_CONTROL    LIKE EDIDC.
        L_IDOC_STATUS_TAB-DOCNUM = <your IDoc number>.
        L_IDOC_STATUS_TAB-STATUS = '68'.
        APPEND L_IDOC_STATUS_TAB.
        CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
             EXPORTING
                  IDOC_NUMBER               = L_EDIDC_TAB-DOCNUM
             IMPORTING
                  IDOC_CONTROL              = L_IDOC_CONTROL
             TABLES
                  IDOC_STATUS               = L_IDOC_STATUS_TAB
             EXCEPTIONS
                  IDOC_FOREIGN_LOCK         = 1
                  IDOC_NOT_FOUND            = 2
                  IDOC_STATUS_RECORDS_EMPTY = 3
                  IDOC_STATUS_INVALID       = 4
                  DB_ERROR                  = 5
                  OTHERS                    = 6.
    Regards,
    Ferry Lianto

  • Steps For Updating the IDOC Status using ALEAUD

    Hi all,
    My Scenario  is : R/3(IDOC)--> Legacy System(File).After the IDOC is received successfully on the Receiver System.I should Update the Status of IDOC on the Sender System.
    Can anyone help me out :
    What all the Steps & Configurations involved for Sending an Acknowledgement & Updating the IDOC status  from the Legacy System.
    Thanks in Advance,
    Dattatreya.

    Hi,
      You may need to set up another flow (a reverse one), where the Legacy sends a msg to XI with the Idoc number of the initial idoc you sent (onward flow).
      now, you can map the idoc number in E1ADHDR/E1STATE/DOCNUM and other statuses as required (in various tags) and also other information as per your environment. Pls see the below links
    Re: Acknowledgements ever switch to Status 39
    Re: Asyncronous acknowledge from file adapter
    Re: R3<->XI<->Auto-ID:How to check result of Idocs sending out from R3 in aii ?
    Regards
    Vishnu

  • How to check idoc status through code

    Hi All,
    Can we check idoc status from within the code? My requirement is that once the idoc is transmitted correctly(status 12) to the system (outbound),I need to update a few fields in my custom table.
    Please share some information if available on this.
    Thanks and Regards,
    Ameya Kulkarni

    Hi
    The table EDIDC will contain the necessary information.  Please check.

  • IDoc status 53 in employee replication from SAP HR

    Hi experts,
    We are having some problems in CRM BP creation with role employee.
    We are using CRM 5.0 and SAP ECC 6.0 and we are trying to replicate employee’s information to CRM from HR.
    After read the notes 934372, 615896, 550055, 363187, 312090 we made the next configuration steps in our systems:
    R/3:
    - Creation of connection port (trans. WE21)
    - Creation of logical system (trans. WE20) and assignment of outbound message HRMD_ABA
    - Creation of distribution model (trans. BD64) with all filters indicated in note 312090
    CRM
    - Creation of logical system (trans. WE20) and assignment of inbound message HRMD_ABA
    - Creation of conversion between basic types HRMD_A05 and HRMD_ABA01 (trans. WE70) as described in note 312090
    - Creation of conversion between message types HRMD_A and HRMD_ABA (trans. WE73) as described in note 312090
    - Creation of external number range “ZE” from HR01200001 to HR01299999 (using PA04 in R3 we found the number range between 01200001 and 01299999)
    - Creation of BP Grouping with the same name of number range (“ZE”) checked to be external too
    - Update of table T77S0 (using SM30):
    HRALX HRAC X
    HRALX PBPON OFF
    HRALX PBPHR ON
    HRALX PBPON ON
    HRALX PNUMB 3
    HRALX PPROL BUP003
    HRALX PSUBG ZE
    PLOGI PLOGI MV
    We know we should have the same value in R3 and CRM for PLOGI/PLOGI, so we created in CRM MV because that is the plan version used in R3. To create it, we just manually add a new row in table T778P and then selected it in table T77S0. Is this the correct way to create a plan version?
    After these steps, in R3 we execute program RHALEINI with parameters:
    - Plan version = MV
    - Object type = P
    - Object ID = an active employee
    - Reporting period = all
    - Transfer mode = Insert
    - Receiving system:
    Receiving partner No = DCRCLNT300 (logical system created in WE20)
    Message type = HRMD_ABA
    And everything looks fine in R3.
    In CRM, using trans. WE05, we can see that the iDoc is created, apparently without problems with status 53 - "Applicaton document posted" but the business partner is never created.
    Did we miss some configuration steps?
    Should we do something more after see the iDoc in CRM to create BP?
    Thanks in advance.
    Alda

    hi pratk bhai,
    ya i have done the same setting what Ada has mentioned eariler,
    and as of your suggestion to maintatin the mandatory infotype, i have even done tht,
    after running RHALEINI in R3, the status is all green here.
    when i run the tcode BD87  to check the Idoc status its showing fine (Error free).
    now, through tcode se38 the report CRMHRALE_CENTRAL_PERSON shows all the employees as status green,,
    but the partner number is not getting generated. ( i have used HRALX-PNUMB= 3 (Prefeexing the number range coming from R3)).
    kindly advice me what should be done in order to generate a BP number for the replicated HR Employee.
    best regards,
    Madhup

  • Idocs are unable to transfer from R3 to PI system, IDOC status is 03

    Hello Gurus,
    Idocs are unable to transfer from R3 to PI system, IDOC status is 03
    in sm58 getting below error
    RFC  are working fine
    "EDISDEF: Port SAPCEP segment defn Z2SH_DESCR000 in IDoc type MATMAS03 CIM"
    Regrds
    vamsi

    Hi,
    I am also facing same problem, Can any one suggest me what is the issue..

  • IDoc Status 02 ( Could not find code page for receiving system )

    Hi All,
    I am getting Idoc status 02 when I am trying to send IDocs from ECC to PI system ( Production ).
    Error description.
    Could not find code page for receiving system
    Message no. E0266
    Diagnosis
    For the logical destination PIP001, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
    Procedure for System Administration
    Possible causes are:
    1. The entry no longer exists in the table of logical destinations.
    2. The target system could not be accessed at runtime.
    3. The logon language is not installed in the target system.
    4. In the destination system, no logon language is maintained
    Please help.
    Thanks - Vinay.

    Hi Vinay,
    Status 02 occurs when data is not passed to port suceessfully. Check the RFC desination  is working fine and your able to connect to target system and also check correct port is assigned.
    Regards,
    Vinod.

  • Idoc lost from SAP R/3 to XI

    Hi experts,
    I have the following problem:
    sometimes an idoc fired from SAP (not through WE19) does not reach XI (I cannot see it in SXI_MONITOR). I've checked the following facts:
    1. SAP R/3 status of the idoc is 03 (direction outbound).
    2. SM58 produces no result.
    3. IDX5 produces no result for that idoc.
    4. 99,9% idocs of the same type fired in the same day work fine.
    Resending manually the same Idoc using WE19 gives no problem and the idoc reaches XI.
    any idea?
    Thanks a lot,
    Daniele

    You must see this in WE05 or BD87. Just release the idoc and have a look at we05 or bd87 and limit down the time where to search. in sm58 you can only see the idoc ith the system can not log on to the remote system. Did you check sm58 in the target system? did you check bd87 in the target system?

  • IDoc status is not coming to '03'

    Hi,
    When I run my program, it is giving IDoc status as 30. When I go and see in WE05, it is showing same status. It's not getting 03 status.
    I know that we can bring the status to 03 by executing the program RSEOUT00. But I want this to come from my program where I have used MASTER_IDOC_DISTRIBUTE function module.
    Generally, even though I get status 30 in the program, when I go and see in WE05, 03 status is displayed. But I don't know what happend this time, it is showing 30 status even in WE05 also.
    Please tell me what could be the reason.
    Regards,
    Suman.

    Hello,
    Check if there are any dumps in the system
    Or
    if there are any authorization issues.
    IF there are dumps, then the system usually stops autoprocessing the idocs and you might need to schedule the program at periodic intervals to get the idoc in status 03.
    Thanks,
    Sushil Joshi

  • Need to change the Idoc Status based on the Text in the Idoc

    Hi All,
    I have developed Idoc--SOAP Sync Process Scenario Using BPM and Works Perfectly.
    I have used STATUS.SYSTAT01 Idoc to capture the Response that is comming from the Webservice.
    I have mapped the response Text( Success or Fail) to one of the field in the Response Idoc, this is perfect.
    Requirement:
    1) If the Response Idoc Field receives Success Text means the Idoc Status shld be in Green Status.
    2) If the Respnse Idoc Field Receives FAIL means the Idoc Status shld be in RED Status.
    How can i Do this. please suggest me......
    Regards

    Hi Santhosh,
    YES, I have to Capture the Response from Webservice in SAP R/3 by using STATUS.SYSTAT01 Idoc.
    I have mapped the response from webservice to the one of the field in the Idoc.
    If this field contains Success as text means the Idoc Status in We05 shld be 53 else it shld be 56
    With out changing the FM code, can we use any other process to achieve this???
    @ Mario
    Can u please Allobarate your views more based on my requirement
    Regards

  • No Idocs arrived from the source system.

    Dear All,
    Please read this issue carefully.
    Error Message is that
    "No Idocs arrived from the source system."
    In the Details Tab:
    Trasnfer( IDOCS &TRFC):Missing Messages or warinings.
    Request IDOC:Application Documnet posted from BW side and it is green..There is a request BW IDOC number  sent to R3.
    Where as an InfoIdocs 1:Sent not arrived :Data passes to the Port is ok.
    Here i can see there is one idoc frm  OLTP R3 side ansd no incomming idoc for BW side
    I went to r3 side bd87 and found that idoc is posted well with status 53.
    This is happing in Bw for each iinfopcakage is running?

    Hi,
    go through this link...
    [https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=noidocsarrivedfromsource+system&adv=false&sortby=cm_rnd_rankvalue]
    System.-> Check RFC connection and clear/process stuck IDOCs.
    Idocs Missing or No Idocs arrived from source
    For this check the TRFC que(SM58).If any Idocs r strucked up there execute them manually.checkin sm58 transactions, you can check the status of your Idocs using BD87 in R/3. Idocs may not be processed because of load on system. You can process them manually from context menu.
    And go to BD87 to process the idoc's ..
    check which idoc has to process...select the idoc and click process ..Then It will push the data into the data targtes,
    Hope it will help you;
    regards,
    NR

Maybe you are looking for

  • Spry Collapsible Panel

    My current web page has 4 tab areas that when the user click on the tab it will expand the information under it. When they click on it again, it will hide the information under it. I use a cookie to hold the value of if the tab should be expanded or

  • Internal error - NUMBER_GET_NEXT call error while craeating new company address

    Dear Team, In solution manager while we going to create company address through tcode SUCOMP and during saving the record error message occur as "Internal error -NUMBER_GET_NEXT call error". Please suggest for solution Regards, Ajay

  • Help needed in Radio buttons (ABAP web dynpro)

    Hi all, I need to implement 2 stand alone Radio buttons (not groupbykey or groupbyindex). I could add the same in my view layout, but I am not sure how to use the KeyToSelect and SelectedKey options. How do I control when the button is selected/desel

  • Nano2g works on all PC's but mine!!!

    When I plug my Nano2G into my PC it is not detected by Windows or ITunes and only charges. I can't get it to be detected through any of my USB ports and resetting the ipod does not help. I've got it to work perfectly with my brothers PC and laptop, s

  • Graphic driver doesn't respond when running Firefox 4 RC1 and battery mode.

    I unplugged AC adaptor from my laptop and started Firefox 4 RC1. Screen was freezed for some time and Windows restarted graphic driver every 2-4min. It was happened on random page (facebook, twitter, some news pages). Windows 7 32-bit, ATI Mobility R