Error Regarding Fetching Address

Hi,
Below code i am writing for fetching the address to print in my form. data is available in respective tables but am not getting the data with this code can any one let me know what is the problem with my code
Thanks & Regards
Munna
FORM F_GET_ADDRESS TABLES IN_PAR_TAB STRUCTURE ITCSY
                          OUT_PAR_TAB STRUCTURE ITCSY.
  DATA : LV_VBELN LIKE VBDKA-VBELN,
         LV_BUKRS LIKE T001-BUKRS,
         LV_ADRNR LIKE T001-ADRNR,
         LV_STREET LIKE ADRC-STREET,
         LV_POST_CODE LIKE ADRC-POST_CODE1,
         LV_CITY LIKE ADRC-CITY1,
         LV_VKORG LIKE VBAK-VKORG.
  READ TABLE IN_PAR_TAB WITH KEY NAME = 'VBDKA-VBELN'.
  LV_VBELN = IN_PAR_TAB-VALUE.
  SELECT SINGLE VKORG FROM VBAK INTO LV_VKORG
                      WHERE VBELN = LV_VBELN.
  SELECT SINGLE BUKRS FROM TVKO INTO LV_BUKRS
                    WHERE VKORG = LV_VKORG.
  SELECT SINGLE ADRNR FROM T001 INTO LV_ADRNR
                      WHERE BUKRS = LV_BUKRS.
  SELECT SINGLE STREET POST_CODE1 CITY1  FROM ADRC INTO
                (LV_STREET, LV_POST_CODE, LV_CITY) WHERE ADDRNUMBER = LV_ADRNR.
  READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_STREET'.
  OUT_PAR_TAB-VALUE = LV_STREET.
  MODIFY OUT_PAR_TAB INDEX SY-TABIX.
  READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_POST_CODE'.
  OUT_PAR_TAB-VALUE = LV_POST_CODE.
  MODIFY OUT_PAR_TAB INDEX SY-TABIX.
  READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_CITY'.
  OUT_PAR_TAB-VALUE = LV_CITY.
  MODIFY OUT_PAR_TAB INDEX SY-TABIX.
  ENDFORM.                    "F_GET_ADDRESS

Check the below code and try now :
FORM F_GET_ADDRESS TABLES IN_PAR_TAB STRUCTURE ITCSY
OUT_PAR_TAB STRUCTURE ITCSY.
DATA : LV_VBELN LIKE VBDKA-VBELN,
LV_BUKRS LIKE T001-BUKRS,
LV_ADRNR LIKE T001-ADRNR,
LV_STREET LIKE ADRC-STREET,
LV_POST_CODE LIKE ADRC-POST_CODE1,
LV_CITY LIKE ADRC-CITY1,
LV_VKORG LIKE VBAK-VKORG.
READ TABLE IN_PAR_TAB WITH KEY NAME = 'VBDKA-VBELN'.
if sy-subrc eq 0.
LV_VBELN = IN_PAR_TAB-VALUE.
  <b>CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
              INPUT  = LV_VBELN
         IMPORTING
              OUTPUT =LV_VBELN.</b>
endif.
SELECT SINGLE VKORG FROM VBAK INTO LV_VKORG
WHERE VBELN = LV_VBELN.
SELECT SINGLE BUKRS FROM TVKO INTO LV_BUKRS
WHERE VKORG = LV_VKORG.
SELECT SINGLE ADRNR FROM T001 INTO LV_ADRNR
WHERE BUKRS = LV_BUKRS.
SELECT SINGLE STREET POST_CODE1 CITY1 FROM ADRC INTO
(LV_STREET, LV_POST_CODE, LV_CITY) WHERE ADDRNUMBER = LV_ADRNR.
READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_STREET'.
OUT_PAR_TAB-VALUE = LV_STREET.
MODIFY OUT_PAR_TAB INDEX SY-TABIX.
READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_POST_CODE'.
OUT_PAR_TAB-VALUE = LV_POST_CODE.
MODIFY OUT_PAR_TAB INDEX SY-TABIX.
READ TABLE OUT_PAR_TAB WITH KEY NAME = 'GV_CITY'.
OUT_PAR_TAB-VALUE = LV_CITY.
MODIFY OUT_PAR_TAB INDEX SY-TABIX.
ENDFORM. "F_GET_ADDRESS
use sy-subrc check always.
Thanks
Seshu

Similar Messages

  • Is there a single FM / BAPI to fetch address form ADRC ?

    Can anyone inform if there is a Single FM/ BAPI which take customer number as input the fetch address from ADRC table ? I know about the function module ADDR_GET but in that you need to pass on the address number to get the address I am lookign for one function which get the address for a given customer number or name.

    Hi Rajey,
    Welcome to SDN.
    You can use FM V_KNA1_GET_ADDRESS_NUMBER.
    The address data you find in KNA1 and ADRC are always the same, the central addresses administration is active only from last releases (I think > 4.0A).
    Hope this will help.
    Regards,
    Ferry Lianto

  • Getting error while fetching Log data using B1TE Tools

    Hi,
    i am using B1TE Tools to test an add on which generating an error while fetching the Log File using DI Logs Reader. The error is below:
    "Wrong Xml file format. "The data at the root level is invalid, Line 1, position 1.".
    please report it on B1TE blog"
    Please help..
    Regards,
    Sunita

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • BO XI R 3.1 SP 2 fix pack 2.1 - Database error occured - "Error on fetch"

    Hi Ingo,
    As per SAP recommendation we have upgraded our SAP BI system from BI 7.0 to BI 7.01 (Enhancement Pack 1).
    And BO XI R 3.1 SP 2 to BO XI R 3.1 SP 2 fix pack 2.1.
    After applying fix pack 2.1 on BO server, suddenly the reports on one of the Universes throwing error as follows:
    A database error occured. The database error text is : (CS) "Error on Fetch". (WS 10901).
    We have to apply Enhancement pack (SAP BI 7.01) and fix pack 2.1 (on BO) before this weekend on production environment.
    Can you please help us if you are having any idea why this error occurs upon BO fix pack 2.1 installation.
    Regards,
    Ravi Kumar Garre
    Edited by: Ravi Kumar Garre on Dec 3, 2009 3:02 AM

    Hi Ingo,
    The query works well in SAP BI side using RSRT / BEx Analyzer.
    I have created a new universe on same BI Query, still the problem exist.
    We have created one new BEx query on same InfoProvider and then Universe. It works fine.
    Regards,
    Ravi Kumar Garre

  • ABAP Proxy Error - Integration Builder address not maintained

    I intend to use ABAP proxy between R/3 (ECC 6.0) and XI (PI 7.0).
    On configuring the relevant connections, I run SPROXY and get the following error:
    Integration Builder address is not maintained in the Exchange profile (Connections)
    I have created the connx LCRSAPRFC & SAPSLDAPI from R/3 to PI but the connectivity does not work.
    On running the reports
    SPROX_CHECK_IFR_RESPONSE
    SPROX_CHECK_HTTP_COMMUNICATION
    SPROX_CHECK_IFR_ADDRESS
    SPROX_CHECK_IFR_CONNECTION
    My question is:
    What is the Program to be used in LCRSAPRFC & SAPSLDAPI? I have used LCRSAPRFC_<sys id of XI server>
    and SAPSLDAPI_<sys id of XI server>
    Should the XI Integration Builder address be maintained in R/3?
    If yes, is there any place where IB address can be maintained in R/3 (I believe there is no such thing as exchange profile in R/3. then how can IB address be maintained in R/3??...pls correct if I am wrong)
    If IB address of XI has to be maintained in R/3 then can anyone pls tell me how to do it?

    Just recheck the steps with this and come up with doubts then
    How do you activate ABAP Proxies?
    Regards,
    Prateek

  • PO E-Mail Out Put Error ( E-mail address incorrect or non-existent )

    Hi Gurus,
    I'M getting the error " E-mail address incorrect or non-existent" when i process the out put type for email of PO.
    I maintained all the settings which are mentioned below ,
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute. 
    Still I'm getting  the same error " E-mail address incorrect or non-existent". could any body help me in this issue?
    Regards,
    Sri.........

    Hi Deepak
    I have gone through the notes which u have mentioned, but it is not helping to my query,
    I had maintained SMTP port in the tcode SCOT.Then I'm getting the message "MAIl request 000000000002 created" when I run tcode ME9F for email out put.But I'm not getting the out put in the email address which I specified in the vendor master record. I can see one error in the transaction code SCOT. should i run transaction SCOT manually every time ?
    Regards,
    Sri...........

  • Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.  Error Code: c0000005  Address: 76f73ac3     I clicked on the OK button and the downloader closed.     I then tried to download from the organizer. I

    Photoshop Elements 12
    Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
    Error Code: c0000005
    Address: 75e32f71
    I clicked on the OK button and the downloader closed.
    I did a search on this error code (c0000005) and there seems to be a workaround but no solutions, why is this? I ask that because this problem seems to be years and years old, going back to at least 2005 (do the math that is 10 years).
    I don't even have the Camera hooked up and I get this error on download.  I redownloaded everything and reinstalled.  I allso saw the AVI issues reported with this proble so i updated Quicktime though without the camera being hooked up when I get this error I didn't expect that to work.  I tried support and they wouldn't help because I bought it in March this year.  Pretty frustrating as I have re-purchased Elements about every 2 years.  I think I might need a new CODEC?   I had this problem on an Earlier version And I seem to remember that being the Fix but this may be something completely different

    I finally found that it was missing a picture so the Catalog was "corrupted".  I just deleted the picture and it started working.
    I hate Adobe and their total lack of support - thanks for nothing Adobe .  Also get this - they offered me to upgrade to 13.0 ( My 12.0 is only 6 months old  but they still don't support it on errors.  Only install errors!
    I have upgrade and repurchase this product 4 times now.  I will find something else next time!

  • After upgrading to Yosemite, Thunderbird does not recognize email addresses: "syntax error" in recipient address. Fix?

    After upgrading to IOS Yosemite, Thunderbird will no longer send emails to the contacts in my history file that drops down when I "write" a new message. I continue to get a return response that there is a syntax error in the address field of the message although I have tried both my stored emails and manually typed email addresses. What has been changed and how do I recover the use of Thunderbird's great program?
    By the way, how do I eliminate out of date email addresses from popping up and populating email responses rather than the most current ones that are in my contacts? I now have to type each one in separately as the default options that come up are many out of date.
    Thanks much for your great work. Mozilla and Firefox are the best.

    Did you find a solution to this issue?  My mail server is doing the same thing.  I've tried six migrations now, and have a couple of tickets open, but they all have issues.  I have worked around all of them except the mail server problem.
    I did some more digging; the problem appears to be that on a migrated server, it leaves all of your mail store in the old location, doesn't move it, and then doesn't appear to upgrade spam-assassin properly.  The net effect is that the mail server gets the SMTP communication, tries to pass the message into spam assassin, and then it goes south.
    I see errors like this littered in the logs:
    Jul 31 13:53:10 mail org.amavis.amavisd[5927]: bayes: cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/O: tie failed:
    Jul 31 13:53:10 mail org.amavis.amavisd[5927]: bayes: cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/O: tie failed: No such file or directory
    Do you see anything similar?

  • Fatal error while fetching data from bi

    hi,
    i am getting following error while fetching data from bi using select statement
    i have written code in this way
    SELECT  [Measures].[D2GFTNHIOMI7KWV99SD7GPLTU] ON COLUMNS, NON EMPTY { [DEM_STATE].MEMBERS} ON ROWS FROM DEM_CUBE/TEST_F_8
    error description when i click on test
    Fatal Error
    com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an error

    thanks for answering .but when i tried writing the statement in transaction 'MDXTEST' and clicked on check i am getting following error
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. BRAINOLAPAPI011
    Diagnosis
    Failed to start the MDX parser.
    System Response
    timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Procedure
    Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
    SO I WENT IN SM 59 TO CHECK THE CONNECTION.
    CAN U TELL ME WHAT CONFIGERATION I NEED TO DO FOR MAKING SELECT STATEMENTS WORK?

  • Error regarding plug-ins/won't open - unpackaged file is 4 GB - which is huge

    When I open a certain file (which has not had any issues) it gives me an error regarding plug-ins/won't open. The odd part is that the unpackaged file is 4 GB - which is huge. The file also doesn't contain that much information to be that size.

    1. Super appreciate your help.
    2. It is saved on my desktop - there are no .idlk files
    3. I sent the file to another person and they cannot open it
    4. The concern is that it is a 4 GB file - which is not normal for an unpackaged file - does that not seem large? Generally even the most populated of docs is in the MB category
    5. All other files open fine
    6. I copied and pasted under a new name, rebooted a billion times

  • "There was an error attaching fetch UID ^[Gmail]^^Drafts ..."

    Went to Drafts and clicked the Edit button at the top of an email. Clicked Send, and got this Send Message Error dialogue box:
    "Sending of message failed.
    There was an error attaching fetch>UID>^[Gmail]^^Drafts>22573. Please check if you have access to the file."
    Clicked OK, the only option. New dialogue box, Save Draft Error:
    "Unable to save your message as draft.
    There was an error attaching fetch>UID>^[Gmail]^^Drafts>22573. Please check if you have access to the file."
    Clicked OK, the only option. Clicked Send again - Send Message Error dialogue box again.
    There was an image in the email, in the message from the other party.
    Just in case it's related, I've recently had other problems - see https://support.mozilla.org/en-US/questions/1024916.

    Is the file open in Pages when you're trying to attach it? Save and close it first.

  • Error Type unknown address 00083578

    Hi,
    Does anyone know what "Error Type unknown address 00083578" means?
    Thanks

    Hi,
    As for the other error message I posted, It's happens apparently randomly (although nothing is random, it's just that I can't identify the pattern) when I use "debug VBS script".
    I didn't save a print screen, if I get it again I'll post a print screen

  • When I try to install PS Elements 12, error regarding shared technologies. [was:NAH1952]

    When I try to install PS Elements 12 I got the error regarding shared technologies.  Troubleshooter suggested I rename OOBE folder to OOBE.bak.  Did this and repeated a few more times with same result.  Now when I try to run installer it tries to unistall PS 12 and gives me error 2343 Specified path not found.  What's next?

    http://helpx.adobe.com/photoshop-elements/kb/error-2343-specified-path-empty.html

  • Server:  (/ERROR: No IP address specified., SunOS)

    When attempting to provision an ALOM host, I get the following error:<p><p>
    Gathering network information..<br>
         Client: 192.168.1.51 (192.168.1.0/255.255.255.0)<br>
         Server: (/ERROR: No IP address specified., SunOS)<br>
    ERROR: Could not obtain network information for server<br><p>
    Any help is greatly appriciated.<p>
    pz

    Thank you so much!!!!
    It helps a lot.
    After adding patch, I escape from the problem.
    126635-02 May/21/07 HTTP 4.6M Service Provisioning System 5.2: N1 SPS OSP Plug-in Patch
    If you can't find the patch, then please check below file:
    /opt/SUNWjet/Utils/serverlib/JS_get_server_address
    And compare below script:
    ================================
    case "`uname -s`" in
    Linux)
    hostif="`netstat -rn | grep \"^${hostnet}\" | grep \"${ifname}\$\" | awk '{print $NF}'`"
    hostaddr=`ifconfig ${hostif} | while read ifname addr bcast netmask; do
    if [ "${ifname}" = "inet" ]; then
    echo ${addr} | cut -d: -f2 -s
    fi
    done`
    SunOS)
    hostaddr="`netstat -rn | grep \"^${hostnet}\" | awk '$6 == iface || $5 == iface {print $2}' iface="${ifname}"`"
    *) nodename="`uname -n`"
    hostaddr="`getent hosts ${nodename}`"
    esac
    ==============================

  • I am receiving an error code: c0000005 Address: 7c910a19 when attemping get photos iPhone to laptop

    I have downloaded photos from my iPhone seve4ral times before, but today I am repeatedly receiving the error code: c0000005 Address: 7c910a19 each time I attempt it. 
    I have closed out the program, tried transferring from camera, from files...same thing each time. 
    What should I do? How can I transfer these 121 photos and 5 videos?
    Thank you.

    see if anything here helps:
    http://forums.adobe.com/thread/504555

Maybe you are looking for

  • Urgent help needed in inserting data into a custom table in oracle WorkFlow

    Hi I am trying to get data from the WF and insert into a custom table.. I read that workflow procedures WONT allow commits... Oracle Workflow will not support autonomous commits in any procedure it calls directly. If you need to perform commits, then

  • Dm_exec_query_memory_grants, Is_next_candidate, wait_order whilst is under memory pressure question

    I have several spids which are in resource_semaphore wait state as there is an active query consuming a lot of memory. When I check dm_exec_query_memory_grants I can see that is_next_candidate=1 spid is requesting more memory than is available (hence

  • Business Process Draft

    Hi all, Is there anybody wants to send a copy of draft business process SD in power point from the project to present to the client ? because i need it for collect the material and some idea. I would like to prepare it with my owm slide. you may send

  • ASK a CS pro: Photoshop CS6 beta

    You can learn tips and tricks and lots of information about Photoshop CS6 beta if you connect now: http://my.adobeconnect.com/askcspro EDIT: I'll post the recording once I get its url.

  • Spinning beach ball of death on opening mail

    I've been using mail since i had my Mac OS X 10.4.6, however, when I updated to 10.4.9, as soon as i open the program, i get the spinning beach ball of death, making me force quit the application. basically, i cannot use my mail application!!!