New Status message to be added in IDOC

Hi all ,
I am a new person to Idoc ,
I have created a function module which fills all the segment field values of an Idoc ,All the configuration  setting for the idoc is perfect & it is also working very fine .
Now I want to create the idoc but it should give some error mssg (status) if the value of some field in the segment  is wrong  .
I tried to rais exception in the function Module ,but this stops the creation of the IDOC .
So thanks to please anyone suggest me how I can add the message in the IDOC & create it .
Thanks to please do not repeat the steps which I have already done .
Thanks & Regards,
Kashim Raja

what you can do is use the user exits for Idoc 's
these are divded into inbound and outbound user exits ..
you will find more help regarding these [here|http://www.erpgenie.com/abaptips/content/view/302/62/]
and
http://help.sap.com/saphelp_nw04/helpdata/en/52/16ae23543311d1891c0000e8322f96/content.htm
hope this does it
Regards
Manthan.

Similar Messages

  • Inbound IDOC Mass processing - No status message

    Hi Friends,
    I am updating a database table using inbound IDOC. But in batch job when XI passes multiple IDOCS,
    for some IDOCs there is no status message even though i coded for status message.
    If i rerun IDOC in BD87 then it work fine.
    please help.
    regards,
    madan

    Hi Madan,
    Since you are loading multiple idoc to the system due to high load in the production system data is not commiting properly. So use external commit work statement in you code. this will reduce the performance but logic will work.
    COMMIT WORK [AND WAIT].
    Effect
    The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the current SAP LUW in the process. In this case, COMMIT WORK performs the following actions:
    It executes all subroutines registered using PERFORM ON COMMIT.
    The sequence is based on the order of registration or according to the priority specified using the LEVEL addition. Execution of the following statements is not permitted in a subroutine of this type:
    PERFORM ... ON COMMIT|ROLLBACK
    COMMIT WORK
    ROLLBACK WORK
    The statement CALL FUNCTION ... IN UPDATE TASK can be executed.
    Triggering an internal event for the Persistence Service of the Object Services.
    If event handlers are registered by the Persistence Service, these collect the changes to the objects managed by the Persistence Service and transfer them via CALL FUNCTION ... IN UPDATE TASK to a specific update function module that is registered as the last update module.
    This executes all high-priority (VB1) update function modules in the order of their registration and in a common database LUW. If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating), but instead is resumed immediately after COMMIT WORK. However, if the addition AND WAIT is specified, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating).
    When all high-priority update function modules are completed successfully, the statement executes the low-priority (VB2) update function modules in the order of registration together in a common database LUW.
    After the execution of high-priority update function modules, the individual function modules registered using CALL FUNCTION ...IN BACKGROUND TASK|UNIT are executed in a separate database LUW for each destination.
    Within an update function module started using COMMIT WORK, the execution of statements that lead to a database commit is not permitted. In particular, the following are forbidden:
    Thanks,
    Raghav

  • How to send status message in SOAP to IDOC scenerio without BPM

    Hi,
    I have a SOAP to IDOC scenerio in which we require to send the status message back to user from XI that " IDOC has been sent successfully to SAP system"
    We do not want to use BPM bacause of performance issues.
    Can you please help me how to achieve this synchronous response without BPM.
    Note: We require the status message from XI that the IDOC has been successfully posted to WESAP system

    Idoc only support async behaviour. U can't get the Idoc response as per ur requirement without BPM.
    Better to go for abap proxy or RFC.
    Or u may get the ack till XI.
    Regards,
    Prateek

  • How to Read Idoc - Segment fields values and status messages

    Hi,
      I am having one requirement as i want to read the segments along with the field values and also i want to read all the status messages.
    first i read the idoc data from EDIDS and segments data from EDID4 and the staus messges from T100. but still i am not getting all the status messages.
    is there any other table which contains the information of IDOC segments and field values and also the status messages.
    Regards,
    Kumar

    You need to use
    V_MSGNO = EDIDS-STAMNO.
    CALL FUNCTION 'MESSAGE_PREPARE'
      EXPORTING
        MSG_ID   = EDIDS-STAMID
        MSG_NO   = V_MSGNO
        MSG_VAR1 = EDIDS-STAPA1
        MSG_VAR2 = EDIDS-STAPA2
        MSG_VAR3 = EDIDS-STAPA3
        MSG_VAR4 = EDIDS-STAPA4
      IMPORTING
        MSG_TEXT = V_TEXT.
    WRITE: / V_TEXT.

  • IDoc Status Messages

    Hi All, Is there any Function Module or standard report which will list out all the Status messages of an IDoc...Basically i need to capture all the segments which are in error state... In EDIDS table i am not able to link to a particular segment.
    Please help me out
    Thank You,
    Regards,
    Swaroop Patri...

    HI,
    <b>ALE/IDOC Status Codes/Messages</b>----
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    <b>Inbound Status Codes</b>
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    Regards
    Sudheer

  • Remove Idoc Status Message

    Hi,
    Is there any way we could remove the IDoc status message after IDoc posted successfully? I have created the customized idoc status and want to remove the standard message since it is overlapping message.
    Any helps is very much appreciated.
    Thanks.
    regards,
    Faread

    Hi,
    IDOC systat01 can be used to change
    the IDOC status very easily
    (you put the idoc number and new idoc status basically)
    http://help.sap.com/saphelp_46c/helpdata/EN/75/4b3c1cd14811d289810000e8216438/content.htm
    REgards,
    Vasanth

  • Error while posting the IDOC. Status message '56'

    Hi,
    I have a requirement where I will post an IDOC which inturn will split the original IDOC into child IDOCs based on the store value.
    I am trying to post the IDOC in WE19. So, the Original IDOC is posted successfully with status '53'. Whereas, the child IDOCS finished with error. The status of the message is '56' and the error says 'EDI: Partner profile not available'. Could someone tell me what could be the reason for this..?
    Actually, the IDOC was created by the Functional Consultant. So, should the partner profile creation also done by them or do we need to do anything to solve this problem.? Could someone answer me this question. Thanks in advance.
    Best Regards,
    Paddu.

    It looks like the control data for the child segment is not getting populated. you have to find the code which populated the control data and see if it is doing what it should.

  • Inbound Processing of iDoc Status Message

    Silly me - I thought this would be simple ...
    I am currently changing our bank interface from a customized ABAP solution to use more standard SAP utilities (particularly iDocs).  I have the configuration set up to use the PAYEXT message type sending PEXR2002 iDocs to a file port.  Our bank is receiving these documents and is returning an iDoc status message containing the status of each payment iDoc that they received from us.
    My problem is that I can't figure out how to get these status iDocs to update the status of the corresponding PEXR2002 iDoc.
    I am trying to execute an RFC interface to apply these status messages to my system using the following OS command:
    D:\usr\sap\VPR\SYS\exe\uc\NTAMD64\startrfc.exe -3 -d RT2 -u xxxxxx -p xxxxxx -c 220 -h SPR32K36 -s 00 -F EDI_STATUS_INCOMING -E PORT=ZFI_INT003
    The error message that I receive when this is run is:
    RFC Call/Exception: SYSTEM_FAILURE
    Group             Error Group 104
    Key                RFC_ERROR_SYSTEM_FAILURE
    Message        Status record 1 is invalid (TABNAM: 'EDI_DC40')
    The port (ZFI_INT003) is the file port that is configured for the outbound file.  in WE20, this port has the "Status File" tab set to use the logical file name where the status file is being stored on the server.  the startrfc command is connecting to the SAP system and opening the status file.  I'm not sure where I'm going wrong here. 
    Can someone please help get me pointed in the right direction?  I've obviously missed something here.
    Thanks,
    Glen

    Hi,
    call function modules:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
       EDI_DOCUMENT_STATUS_SET
       EDI_DOCUMENT_CLOSE_PROCESS
    kind regards,
    HP

  • Search idocs using status message EDIDS

    Hi,
    Is it possible to find out the idocs using status message?
    For example, I need the idocs example in test system which has error message "Vendor & is not defined in company code &"
    How to search idocs using error message?
    Thanks for your help.
    Regards,
    Yogita

    Hello Yogita
    You have to select within table EDIDS directly:
    Example:
    STATXT = Item &: Only &2 &3 from material &4 are available
    STAPA1 = syst-MSGV1
    STAPA2 = syst-MSGV2
    STAPA3 = syst-MSGV3
    STAPA4 = syst-MSGV4
    STATYP = syst-msgty (E, W, I, S, A)
    STAMID = syst-msgid
    STAMNO = syst-msgno
    Regards
      Uwe

  • IDOC Status message

    HI
    I have to pick IDOC status message in my report program.  For this I am referring the table EDIDS. My doubt is some times the IDOC status message is storing in the field ‘STATXT’ and some times the idoc status message is storing in the fields STAPA1, STAPA2, STAPA3,STAPA4.  How come I know  I mean from which field I need to pick status message in my report program. I am giving idoc number as input to the table EDIDS. If possible please send me the sample code to resolve this problem. I will give points.
    Thanks a lot in advance.

    Hi,
    STAPA1, 2, 3 & 4 are the place holder values for the message..
    If you have a message in SE91..like
    Sales order & created.
    The & will be given in the program where it displays the message.
    MESSAGE s208(00) WITH vbak-vbeln.
    The vbak-vbeln value will be stored in field STAPA1.
    Thanks
    Naren

  • Idoc to update picking status messages

    We have an interface from wms to sap which updates the picking status messages. Can anyone let me know what would be the idoc type to update picking status messages or do the status messages get updated automatically as soon as the actual picking quantity is updated?

    Picking status is updated when the picking quantity is updated.

  • When synching my ipod 80 gig classic, I get this message " iPod cannot be synched.  A duplicate file name was specified"  And yet, any new music in iTunes is added.  What causes this message?

    When synching my ipod 80 gig classic, I get this message " iPod cannot be synched.  A duplicate file name was specified"  And yet, any new music in iTunes is added.  What causes this message?

    Try deleting the iPod Photo Cache from the nominated folder that you have set up to sync photos to the devices.
    See iTunes: Understanding the iPod Photo Cache folder for more info.
    tt2

  • Add new User Awareness Status Messages(Collboration)... :)

    Hello All,
    I want to add new user availability status messages (which are related to Awareness Status Selector in Collaboration).
    When an user enables the Collaboration Launch Pad, the user can enable on:
    i> Auto Detect Status
    ii> Not Available
    I would like to add essages like "Be Right Back", "In Meeting", etc....just like we have in Yahoo Messenger.
    I found the par file which is respensible for such  Collboration feaures & its:
    "com.sap.netweaver.coll.shared.ui.par"
    but when I opened the par file to check the details...noticed that all is in the portalapp.xml file.
    Cannot understand where can i add new messages....
    Please help...
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan
    <i>Note: Please excuse me for posting this in EP Development Content and not KMC Forum section.</i>
    Message was edited by: Ritu  Hunjan

    Reinstalling isn't a drastic measure w/Snow Leopard. It just replaces all OS components with new and uncorrupted ones and Apple's basic apps, such as TextEdit, Mail, Safari, and Terminal. That eliminates any mucked up ones. Once you assure yourself that the problem's solved, make a bootable backup/clone or Time Machine backup and update via Software Update. Let us know how it turns out.

  • Change the Status Message description of IDOC

    Hi All,
    As per the requirement, we need to change the Description of the standard IDOC status messages.
    Example:
    STANDARD : Status 51 - Application Document not posted
    DESIRED       : Status 51 - Application Document not posted, can be reprocessed
    We have found the maintenance view to change the same : VEDI_STATS.
    Is it advisable to do so?
    if Yes Why? and if No then Why?
    Note: I'll be changing ONLY description and nothing else.

    Hi,
    I would suggest not to change the status using VEDI_STATS.
    .. if you want to change do it at function module level for each message type. where you can change the idoc status to which ever message you want to.
    Regards,
    Nagaraj

  • A message saying new vault could not be added. ensure that destination path has appropriate permissions. What does this mean and what do I do about it?

    Adding new vault a message saying "New vault could not be added. Ensure that destination path has appropriate permissions and that vault has a unique name.
    What do I do?

    Check to make sure you have write permissions on the folder you are trying to make the vault in and that there are no other vaults in that folder using the name you are trying to use to make this new vault.

Maybe you are looking for

  • Problems pairing wireless keyboard with Mac mini

    Hi, I just bought a new Mac mini with wireless keyboard and mouse and cannot pair the wireless keyboard during the initial set up. Took out the batteries, turned off the mini, still doesn't work. I'm looking into borrowing a regular USB keyboard an r

  • TS3274 Touch screen issues

    How can I fix some touch screen controls are not working. Also sometimes the space bar is not responding. I've tried power reseting but to no avail.  This situation just started yesterday no warning. Is there a utility to adjust touch screen sensitiv

  • Importing Microstation SE DGN files into Adobe Illustrator CS4

    Hello, New to the forum and was hoping someone could help answer what is likely a very basic question: Can Adobe Illustrator CS4 import DGN files (containing point, line, text, shape, fills, cells and other complex elements) created in Microstation S

  • Sorting columns in SortingTable

    Hello All, I am implementing a Find User functionality on the end-user side as a series of forms in a workflow. I am able to manually query and display results in a SortingTable, but on clicking any of the column headers, an error message: "WorkItemF

  • Auto PO by Fax/ Mail

    Hi All, We have a requirement to Fax/Email the Purchase order to vendors upon creation. The requirement is such that suppose there are 4 vendors A,B, C and D For vendor A we have a Fax no and email id maintained in the vendor Master For vendor B we h