How to find whether url attachment linked to invoice is deleted

Hi all,
I have a scenario in which a URL is retreived from a 3rd party application while creating an invoice (finance and SRM) and is displayed as an attachment (FB03/MIR4). Here PI is used as middleware and using proxies the URL is retreived from the 3rd part application and updated in the respective invoice using standard FMs.
Now the issue is at any point of time an invoice number say 123 can have only one and the same URL say http://ABC. It was noticed that the same urls are updated twice for the same invoice number when an invoice is parked and later on when the invoice is posted.
So in the code which updates the invoices with url, one check was made to table SRGBTBREL to check if an entry exits for the invoice number and only if sy-subrc ne 0, the code to update the url is executed and the problem of creating mutiple attachments of the url for the same invoice number was solved. But after doing this encountered another issue. When the user goes and deletes the url from invoice, the next time he tries changing the invoice, the url does not get updated because an entry for the invoice number already exists in SRGBTBREL.
Hence is there any table or way to find out that the URL is deleted for that particular invoice (Since currently there is no attachment while viewing using FB03/MIR4).
Please help with your kind suggestions.
Thanks and regards,
Hari

I have solved the issue and closing this question.
Thanks,
Harikumar

Similar Messages

  • How to create a pdf for the URL attached to an invoice and send it as an attachment in a mail

    HI,
    I have requirement where i need to get the URL attached to an invoice, create the pdf and send as an attachement in a mail.
    The URL attached to an invoice can be seen by following the path : VF03-> Billing document->system->Services for object ->Attachement list.
    On searching through existing forums, i found that there is a table 'SRGBTBREL' which stores relationships of GOS object. On giving the invoice number in field 'INSTID_A', i could find an entry in this table.
    To get the content, i used the class CL_FITV_GOS, method GET_CONTENT. To this method i passed following values:
    IV_ATTA_ID = FOL21000000000521URL39000000000012 (The value if field INSTID_B from table SRGBTBREL)
    IV_OBJTP   = 'URL'
    On execution, i get URL link but the content table is empty.
    Could anybody provide some input on how i get the content? Or may be how i can create pdf from the URL link and attach it to mail as an attachment?
    Thanks,

    Hi Amit,
    Solution provided by you is working when the link length is one line but it is not working for more than one line
    Eg: say link is https://......80 [80 characters long]
    I will give    <a href="https://...72            [in first line]
                     73..80">click here</a>         [in second line]
    I will get the output as 73...80">click here
    But i want only CLICK HERE in my output..
    Please suggest solution.
    Thanks,
    Kavya

  • How to find whether MIRO is done for a PO

    Hi All,
    Is there any indicator attached to POs that indicates whether MIRO is done for that PO?
    I mean after PO creation in ME21N -> GR in MIGO -> Excise (if applicable) and -> MIRO... how to find whether MIRO is done for a particular PO?
    Helpful tips will be gratefully rewarded...
    Regards,
    Karthik

    See if an entry exist in EKBE for the PO Number and its items.
    The complete process though is, to find the GR Quantity for each PO Item and see if it matches with the PO Item quantity.
      SELECT EBELN
             EBELP
             MENGE
             LOEKZ
        FROM EKPO
        INTO TABLE LT_EKPO
       WHERE EBELN = P_EBELN.
      IF NOT LT_EKPO[] IS INITIAL.
        SELECT EBELN
               EBELP
               MENGE
               BEWTP
               GJAHR
               BELNR
               BUZEI
               SHKZG
          FROM EKBE
          INTO TABLE LT_EKBE
          FOR ALL ENTRIES IN LT_EKPO
         WHERE EBELN = LT_EKPO-EBELN
           AND EBELP = LT_EKPO-EBELP
           AND VGABE = '1'.
      ENDIF.
      LOOP AT LT_EKBE.
    * Change the sign of the quantity for debit
        IF LT_EKBE-SHKZG = C_SHKZG_H.
          LT_EKBE-MENGE = -1 * LT_EKBE-MENGE.
        ENDIF.
        MOVE-CORRESPONDING LT_EKBE TO LT_EKBE_SUM.
        COLLECT LT_EKBE_SUM INTO LT_EKBE_SUM.
        CLEAR LT_EKBE_SUM.
        ENDLOOP.
       loop at it_ekpo.
    ** For each line item, calculate the total GR Quanity
        READ TABLE LT_EKBE_SUM WITH KEY EBELN = LT_EKPO-EBELN
                                        EBELP = LT_AWKEY-EBELP.
        IF SY-SUBRC = 0.
    * If the PO Item Quantity is equal to GR Quantity
            IF LT_EKPO-MENGE <= LT_EKBE_SUM-MENGE.
    * The PO Item can be considered completed GRed
            ENDIF.
        ENDIF.
      ENDLOOP.

  • How to find whether remote database is up or not (connected via dblink)

    Hi,
    I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
    Running dbms job using the dblink from the Dev database to update data on Biz database...
    Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
    1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
    2) How to reschedule the dbms jobs once the database is up
    pls suggest me how to find whether the database is up or not b4 running the dbms job?
    Using- Oracle 10g

    The only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
    By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
    Justin

  • How to find the number of links in a website

    hi every body
    can any one clear my doubt
    my doubt is that
    in a website how to find the number of links the hole website contains
    is there any navigation tool to find that
    plz help me yar
    i am waiting for the reply

    If you're talking about commercial sites (sites you don't have the source code for) I'm not sure.
    If you want to count the links in site that you have the source code for, it should be relatively easy to write a Java application to do it. All you really need to do is have a list of the files you want to count links in, read each file line by line and check for the existance of the <a> tag in each line. Anywhere their is an <a> tag there is a link.
    Hope this helps.

  • How to find whether an Invoice is been posted for a particular PO

    Hi,
    How to find whether an Invoice is been posted for a particular PO.
    I have a scenario where I fetch data into an internal table T_CDHDR(It has PO and other details). For each and every entry(PO) in that internal table I have to see whether an Invoice is been posted or not. They told to use <b>EKBE(Purchasing document history)</b> table. But, I don't know which field to check for and based on what conditions.
    Can someone help me with sample code or some valuable inputs.
    Thanks in advance.
    Regards,
    Paddu.

    HI,
    TABLE IS RIGHT.
    IN THAT TABLE FOR THE FIELD BEWTP CHECK WHETHER ENTRY IS "Q".
    Q STANDS FOR IR-L THAT MEANS INVOICE IS DONE.
    ON THE SELECTION SCREEN OF EKBE TABLE ENTER THE PO NUMBER.
    THEN CHECK WHETHER IT HAS ENTRY FOR BEWTP 'Q'.
    YOU CAN CROSS-CHECK THIS DATA FROM TABLE WITH THAT IN ACTUAL PO IN T.CODE - ME23N.
    ENTER PO NUMBER ,THEN IN ITEM DETAILS , IN HISTORY TAB SEE FOR THAT INVOICE NO.

  • Hi guys,Explain how to find whether the user request is dialog or bc ...

    how to find whether the user request is dialog or bc or some other wp and where we can see that ?

    Hello Damodar,
    You can find out that in SM50.
    However one piece of advice. I have noticed that you are raising lots of questions about very basic questions. Either you new to SAP or dont know anything about SAP Basis and want to get in this area. Or else you are preparing for some interview. In either of these cases expecting solutions given at SDN are not going to be of much help. Better read yorself in SAP Help as most people do. SDN should not be overly used for such purposes. Basic questions are welcome but you want to learn SAP through SDN !!!
    Regards.
    Ruchit.

  • How to find Discussions URL

    I was wanting to tell a new Mac user how to find the Apple Discussion link (i have it bookmarked). I went to Support but could not find the link to Discussions. Has this been removed from support? How do I tell them to locate it?

    It now appears in Support in the middle of the page, under Community, with a link to Discussions.

  • How to find whether the installed sap software is 32 bit or 64 bit?

    How to find whether the installed sap software is 32 bit or 64 bit?
    Hi Community,
    We have Windows machine - 64 bit - x64. So, we can install either 32 bit or 64 bit sap software, both are supported, right. Now, a sap system is already installed on this machine and i would like to find out whether the sap software is 32 bit or 64 bit, how can i check?
    I have already seen under Menu System - Status - Other Kernel Info & at OS level, with the command disp+work but i cant find the info iam looking for.
    Please help.
    Regards,
    Mohan.

    Hi Sunny,
    Thank you very much for your quick reply.
    Didnt know that one has to look under "Compiled for".
    Regards,
    Mohan.

  • How to find whether my netbook is bluetooth enabled

    I want to connect to my Android Tablet via bluetooth to my netbook Aspire One running on Windows XP.
    How to find whether my netbook is bluetooth enabled ?
    K.R.Kumar

    Click Start, click Run, type bthprops.cpl, and then click OK.
    If your computer has bluetooth capabiliteis, it will launch "Bluetooth Devices". If you successfully opened Bluetooth Devices, then your computer does have Bluetooth capabilities, otherwise, it does not have...
    If it has:
    On the Options tab, click to select the Turn discovery on check box, and then click Apply. To enable Bluetooth devices to connect to your computer, click to select the Allow Bluetooth devices to connect to this computer check box, and then click OK.

  • How to find out responsibility attached for particular user through query

    hi
    How to find out responsibility attached for particular user through query
    Regards
    9841672839

    Hi,
    Following sql will help you find the responsibilities associated with the users in oracle applications.
    SELECT frt.RESPONSIBILITY_NAME, furg.end_date
    FROM
    fnd_user_resp_groups furg,
    FND_RESPONSIBILITY fr,
    fnd_responsibility_tl frt,
    fnd_user fu
    WHERE fu.user_name = ‘&&username’
    AND fu.user_id = furg.user_id
    AND furg.responsibility_id = fr.RESPONSIBILITY_ID
    AND frt.responsibility_id = fr.RESPONSIBILITY_ID
    ORDER BY 1
    Cheers...

  • How to find the URL of precalculated query

    Hello,
    I would enter into a precalculated query direclty the URL; is it possible?  How to find the URL ?
    Thanks.

    Hello Arvin,
    I have created a Web Template, and through the Reporting Agent, I run the query.
    Regards,
    Laura

  • How to find whether the cookies are enabled or not

    Hi All,
    Please suggest me, while sending the first request only how to find whether the cookies are enabled or not.
    thanks.

    you could use a servlet, write a cookie and then try to read it, if it's read then it's enabled else not.

  • Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished

    Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished all I can find is ( Expand  behavior and Overlap Items Below.)

    If I got your query right, do you mean you don't have all the options in the Accordion Options panel as pictured below?
    If the above is true, can you try re-inserting the Accordion panel and check if the options then become available for you. Also, please check if you're running the latest version of Muse i.e. 4.1.8 as on today.
    If the problem persists, please try creating a new Muse project and see if you are able to replicate the behaviour on a fresh Muse site as well.
    Thanks,
    Vinayak

  • How to find out URL of Masthead Help Link

    Hi Experts,
    I am working for a support project. Implementation team has long back left the project. I have to change the 'Help' link URL of Masthead area. There are three links in Masthead - Logoff, Personalize and Help.
    At present when we are clicking on 'Help' link of  Masthead, user is routed following website:
    https://www.xyz.com.
    In the new scenarion, when the user will click on 'Help' link of  Masthead, user should be routed following website:
    https://www.abc.com.
    I can see the following property of Masthead iView:
    Show Link in Masthead: Help
    I am unable to find out where the URL has been stored.
    Can you please let me know. Is it in UME or any other place? If yes, where excatly in UME.
    I searched a lot in the code. I got the file (com.sap.portal.navigation.masthead) from server. After that I imported it in NWDS. I searched a lot in various places of NWDS. I can not see the URL.
    It seems that javascript:openHelp is helping in getting URL. If yes, how?
    <TD nowrap >
    <!--<hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openHelp();"><hbj:textView nested="true" text="<%=helpTextStr%>"/></hbj:link> --><hbj:link id="HelpLink" tooltip="<%=helpTooltipStr%>"
         linkDesign="FUNCTION" reference="#">
                                          <% if (!isPreview) { HelpLink.setOnClientClick("javascript:openHelp();");} %>
                                          <hbj:textView nested="true" text="<%=helpTextStr%>"/>
                                        </hbj:link>                                             
    </TD>
    <TD nowrap>
    Please help.
    Regards,
    Gary

    Hi Sushil,
    It seems that I don't have the correct masthead  par file. I have got the masthead file from BASIS. It is com.sap.portal.navigation.masthead
    The existing masthead par file has following setting in portalapp.xml
    <property name="HelpUrl" value="http://help.sap.com/content/documentation/netweaver/docu_nw_04s.htm">
              <property name="plainDescription" value="Help Link URL"/>
              <property name="category" value="Navigation"/>
            </property>
            <property name="ShowLogInLogOffLink" value="true">
              <property name="validvalues" value="4/true5/false"/>
              <property name="plainDescription" value="Show Link in Masthead: Log In / Log Off"/>
              <property name="longDescription" value="Show or hide the 'Log In' / Log Off' link displayed in the masthead iView at runtime."/>
              <property name="category" value="Navigation"/>
            </property>
            <property name="HelpUrl" value="http://help.sap.com/nw04 ">
              <property name="plainDescription" value="Help Link URL"/>
              <property name="category" value="Navigation"/>
            </property>
    This does not contain link https://www.xyz.com
    Does this mean that the mathead par I am having is wrong.
    Please suggest.
    Regards,
    Gary

Maybe you are looking for