Get plant address for PM/PS PO from the first active line item

Hi Gurus,
I have a need to modify the current PO printout where i will need to extract the PO's first active line item's plant address. This plant address are actually stored in standard text which will be maintained in a custom table. Should I be including this logic in the print program or should i just directly call it from the form itself?

Can i do that directly, I will need to check for the account assignment type before even calling from the customised table for address(which is stores standard text details). Can u do that in sapscript?

Similar Messages

  • During F110  run-How to pick profit centre from the Pur.Invoice line item ?

    Could anyone please help me with a solution to this problem.
    Purchase invoice line items have got profit centre recorded from Material master.
    While doing the auto payment run F110, for foreign currency invoices, the exchange rate diff
    is posted to a - realised exch rate diff gl a/c.
    But there is no cost object attached.
    Business wants the system to pick the profit centre from the purchase invoice line item
    and put it in the line item record of the exch rate diff account.
    Can I do it using OKB9 ? Could someone please explain how to do it.
    Thanks

    Hi,
    With standard SAP this is not possible.may be you have to develop some custom program.
    with my experiance,we always post to defualt cost center.
    hope this helps you.
    Thanks,
    Rau

  • Get IP Address For  a user name from Terminal

    hi experts,
    Can any one help me in finding the IP address for a user id.I want to find the ids for multiple logons.
    I tried using TERMINAL_ID_GET but it returns the IP only based on the user id.So i am getting only one IP.
    I tried with CL_GUI_FRONTEND_SERVICES=>GET_IP_ADDRESS and faced a same problem.
    So i want t find the IP address with respect to user id and Terminal ID.
    With thanks in  advance,
    Syed Ibrahim . G

    Hi,
    just check transaction SM04 (or program RSM04000_ALV). The program determines also the terminal ID and the IP adress.
      if long_usr_list = th_true.
          call 'ThUsrInfo' id 'OPCODE' field opcode_long_list
          id 'TABUSR' field usr_tabl-*sys*.
      else.
        call 'ThUsrInfo' id 'OPCODE' field opcode_list
          id 'TABUSR' field usr_tabl-*sys* .
      endif.
    Such calls usually should not be used. But anyway. Maybe this is helpful.
    Kind regards
    Rudi

  • C# : Get Column name for an Insert Query from The Selected GridView Row.

    Hi Guys, I am trying to insert data in an SQL table by executing an Insert Query. 
    The problem is that I need to get the column name from a cell in the selected gridview Row.
    Here's the snippet:
    SqlCommand cmd30 = new SqlCommand("insert into mytable ( '"+GridView7.SelectedRow.Cells[0].Text+"' , r_id) values ('"+ GridView7.SelectedRow.Cells[1].Text +"', '"+TextBox1.Text+"')",con30);
            cmd30.ExecuteNonQuery();
    **r_id is not a Primary Key.
    The Error is get is:
    Incorrect syntax near 'r_id'.
    Any Help will be appreciated.
    Thanks,
    Shaleen
    TheHexLord

    Hi TheShaleen,
    Like your title mentioned.GridView control is a web class.This forum is to discuss problems of C# development.  Your question is not related to the topic of this forum.
    You'll need to post it in the dedicated ASP.Net Forum  for more efficient responses, where you can contact ASP.NET experts. Thanks for understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a new iPad. I am using Comcast as my email provider but when I send a message, it pulls up the facebook email addresses for my  contacts  instead of the addresses stored in my comcast account.  How can I get rid of the Facebook email addresses? The

    I have a new iPad. I am using Comcast as my email provider but when I send a message, it pulls up the facebook email addresses for my  contacts  instead of the addresses stored in my comcast account.  How can I get rid of the Facebook email addresses? The comcast addresses are stored in the comcast (xfinity) app.  I do not use the "mail" or "contacts" apps ....I go straight to comcast (xfinity).  I wish I could start over!!!  thanks.
    iPad

    I could be wrong, but it sounds like Facebook imported to your contacts.  I have the Xfinity app on my new ipad, too, but none of my stored contacts from the online version are showing, only what I manually entered into the iPads contacts are there.  When I did add the FB app, I did not grant it permission to push and pull from my ipad (not a fan of FB knowing every detail about me), so that may be where our difference lies.  You could try to open the app and change your privacy settings, or delete it and then reinstall without granting permissions to integrate.
    I'm sure someone here with a lot more knowledge then me can probably diagnose your issue better, though.  Good luck!

  • I keep getting a 'Looking for backup disc' message from my  Time Capsule.

    I keep getting a 'Looking for backup disc' message from my  Time Capsule. I have set it up several times without any apparent problems (I have even done a Hard and Factory reset). Everything seems fine until I ask Timemachine to 'back up', and then the problems start.
    Any ideas?

    I had the exact same problem. I bought the Time Capsule this past July and it worked fine for about a month then it told me it hadn't backed up in 10 days and was stuck looking for the backup drive. I called Apple and they said the reason was that the Time Capsule was in Bridge mode. I launched Airport Utility and sure enough, it was. I changed it to DCHP and NAT (Airport Utility -> Network tab -> Router Mode). After updating the Time Capsule, I couldn't even get on the Internet, let alone do a backup. A logged into the software for my cable modem and discovered that it too was in Bridge mode.
    It turned out (for me) that neither should be in Bridge mode (which is for connecting two networks). Your cable modem only has one IP address. Your Time Capsule should be doing the NAT (Network Address Translation) which translates the internal IP addresses on your network to the one IP address your cable modem has. When I switched my Time Capsule to DHCP and NAT, it conflicted with the fact that the cable modem was also trying to do this. The answer was to turn this off on the modem (allowing all the packets to just go through the modem to the Time Capsule and let IT do the NAT). I did that last week and since then, my Time Capsule has been working perfectly.
    1) Go to your cable modem (via a browser, enter "http://192.168.100.1"). Log-in and find the setting that indicates NAT. If you're uncomfortable doing this or can't find it, call your cable company and ask Tech Support to do it for you. They can do it remotely.
    2) Launch Airport Utilty. Go to the Network Tab and change the router mode to "DHCP and NAT".
    3) You may need to restart your modem and Time Capsule. I can't remember if I had to or not.
    I hope this helps. I tried many things but this is the only solution that fixed it for me. And it makes sense. Only one device, the cable modem or the Time Capsule, can be doing the NAT.

  • I have a little bit problem with verify my apple ID, I don't get any message for verification aplle ID from Apple. Why? Anyone can help me

    Dear all,
    I have a little bit problem with verify my apple ID, I don't get any message for verification aplle ID from Apple. Why? Anyone can help me

    Hi Tep Virak,
    Thanks for visiting Apple Support Communities.
    You may want to log into your Apple ID first to double-check that it's the right email address and re-send the verification email using these steps:
    Sign in to My Apple ID to manage your account information.
    Click Resend under Primary Email Address.
    From:
    Apple ID: Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/he68
    All the best,
    Jeremy

  • I can not get real audio player to record videos from the internet, I believe the problem is that my Firefox browser is set for 64 bi... i need to change it to 32 and do not know how.

    I can not get real audio player to record videos from the internet i use firefox as my browser on windows 7, I believe the problem is that my Firefox browser is set for 64 bi... i need to change it to 32 and do not know how.

    dont know what to do

  • Failed to get IP address for Local Host (2) , OPMNCTL: opmn start failed

    HI,
    Hi, I have installed on Oracle 10g on Redhat Enterprise Linux V.2.1 . I was able to start OEM without any issues. Recently I had changed the static IP address and I couldn't able to start OPMNCTL and getting the following error while starting opmnctl start. error message is as follows.
    Failed to get IP address for local host(2).....
    Failed to get IP address for local host(2).....
    Failed to get IP address for local host(2).....
    my current configuration in /etc/hosts file is as follows.
    127.0.0.1 localhost.localdomain servername
    After going through some of threads available in Oracle, I have added the static IP address in the /etc/hosts but still I am getting the same error.
    my new hosts file is as follows.
    127.0.0.1 localhost.localdomain servername
    10.21.253.102 localhost.localdomain servername
    I don't know why this is looking for localhost (2). I did not set up any local host (2) and I could not see anything in my network confiuration also.
    could you please help me in this issue? I appreciate your help in this regard.
    Thanks
    venkat

    Hi, i think that the application server part is looking for a /etc/hosts entry
    in this format:
    127.0.0.1 localhost
    As i noticed, this is used for internal communication.
    Try this entry as is, without a domain...

  • How can I get "library components" for Encore? download from Adobe site is corrupted/missing files

    How can I get "library components" for Encore? download from Adobe site is corrupted/missing files.  I have tried 3 times to d/l and each time problems.  HELP please!
    I just want the DVD templates and buttons that would come with actual purchase of Encore.  Having creative cloud subscription should not limit this for me, right?
    BTW I have CC subscription, Windows 7,

    Thanks very much I have contacted them via this. Just hope they respond quickly- rather annoing! Greatly appreciated though

  • Getting falsely charged for in app purchases from a game app and no response nor action taken to be reimbursed for the app as well as iTunes

    Getting falsely charged for in app purchases from a game app and no response nor action taken to be reimbursed for the app as well as iTunes

    no and hd as well bash or times response i've itunes. reply yet contacted bingo fifty

  • I downloaded Firefox 5.0 for Mac and now every time I want to open Firefox, I get a window warning me about downloading from the internet andwon't let me open until I answer.

    I downloaded 5.0 for Mac and now when I click on Firefox icon, I get a box warning me about downloading from the internet. How do I get rid of this?
    Another issue also, my bookmarks open up with the pages skewed to the right. How do I rectify?

    You can get latest version of Firefox from
    * getfirefox.com
    review mac installing guideline
    * https://support.mozilla.com/en-US/kb/Installing%20Firefox%20on%20Mac

  • Failed to get proc address for GetLogicalProcessor...

    hi everyone whenever i try to open the skype after instalation it show me this error"Failed to get proc address for GetLogicalProcessorInformation (KERNEL32.dll."please help me to solve this problem.i will be very thankfull to you for this favour.thank you.

    Hi, i think that the application server part is looking for a /etc/hosts entry
    in this format:
    127.0.0.1 localhost
    As i noticed, this is used for internal communication.
    Try this entry as is, without a domain...

  • "failed to get MAC address for machine"

    here is the jist of things.
    installed leopard and have it pimped out to my personal specs. I like where everything is and how things are working. No issues. just so you know, i only use WIFI for internet, i share with the guys upstairs. In order to get wifi on my machine, i use a USB dongle. works great no issues with it ever, well until i physically broke it. No big deal. So i replaced it with another one, different drivers/chipset worked.. And since i installed leopard i only backed it up once with TM, i dont care for daily/hrly backups, weekly is fine for me. Now after 2 weeks and a new usb network card. TM gives me an error. i click on the little red i and it says "the backup volume could not be found" so googled and searched the forums not much help, so i tried and formated my ext drive repaired and click on TM again, same error. In the error log in console, right after i turn on TM i get this error, "failed to get MAC address for machine" then 180 secs later, TM fails. again, and again.
    Can anyone tell me where i can find what MAC address its looking for??? ethernet has never been plugged in to my machine ever. its only been online via USB wifi. Im really lost here, i dont know what i can do.. im sure if i try another drive ill get the same error. please help if you can.. much appriciated.
    Jamie

    yeah i get a 'failed to get mac address' message too. what's weird is that it seems that leopard 'broke' my ethernet (there was no mac address, couldn't connect to the internet through ethernet after a clean install), and then 10.5.2 'fixed' it. for some reason, i have an 'ethernet 2' heading in system preferences that works correctly and has a mac address and everything, while the regular 'ethernet' tab doesn't work at all. however, i still get this time machine error. i don't understand why time machine is so incredibly fickle. sorry, i'm really of no help to anyone, other than adding another voice to the frustration.

  • Getting building code for teh storage location in the output

    HI !
    In one of my program I ahve to bring in several plant details as well external bill of lading deatils as well as the building code . I have been able to get the other details except for the building code which needs to come from teh adrc table I suppose. Actually not able to connect the detaisl to grab in the building code. Would anyone be able to help me out in getting the building code for the storage location in my program if possible .
    Help would be greatly appreciated.
    Thanks

    I wrote down a code for that and this
    is what its doing as of now.
    When I do the selection of a single plant and for a particluar date
    it does give me the correct storage location building
    code , bust as soon as I put a range of plant say 120 to 300
    it copies the the storage location building code
    of the previous plant itself which si contradictory.
    I would like to get the correct building code
    even when I do the range of selection like when I do
    a single selection of plant.
    For example when I select the range between 0135 and 0351
    this is the output I get.
    50002438 80002249 0135 ABWP0000659 100051 < correct
    50002439 80002250 0135 ABWP0000659 100005 < correct
    50002447 80002257 0135 ABWP0000659 100005 < correct
    50002459 80002258 0135 ABWP0000659 100005 < correct
    50002460 80002259 0135 ABWP0000659 100005 < correct
    50002461 80002260 0135 ABWP0000659 100005 < correct
    50002424 80002235 0351 ABCT0000426 100101 < copied teh B.code from Strg loc "CT" of plant 135
    50002429 80002237 0351 ABTM0082315 100101 < copied teh B.code from Strg loc "TM" of plant 135
    50002430 80002244 0351 ABWP0000659 100101 < copied teh B.code from Strg loc "WP" of plant 135
    The code I used :-
      loop at gt_adrc assigning <fs_adrc> .   <  this is where I am trying to get the building code from S.Loc address into lgobe
            loop at gt_twlad assigning <fs_twlad>.
              if <fs_twlad>-adrnr = <fs_adrc>-addrnumber  and
                 <fs_twlad>-lgort = <lfs_lips>-lgort_i.
                gt_deliveries-lgobe = <fs_adrc>-building.
              endif.
            endloop.
          endloop.
    ********and then .......
    * Selecting Address Number from TWLAD
      select werks lgort adrnr
        from twlad
        into corresponding fields of table gt_twlad
        where werks in s_werks and lgort in s_lgort  .
    * Selecting Facility code
      if not gt_twlad[] is initial.
        select addrnumber name2 street roomnumber building
          from adrc
          into corresponding fields of table gt_adrc
          for all entries in gt_twlad
          where addrnumber = gt_twlad-adrnr.
      endif.
      if not gt_adrc[] is initial.
    * Get the provinces
        select * from t005u
          into table gt_t005u
          for all entries in gt_adrc
          where spras = sy-langu and bland = gt_adrc-region.
      endif.
      loop at gt_twlad assigning <fs_twlad>.
        clear gt_lgort.

Maybe you are looking for

  • Deleting Files in Time Machine Backup

    I found a problem that others may or may not experience. When attempting to delete files that are in Time Machine's backups the Action worked to Delete All Copies once. When I tried deleting another file using the same method, I couldn't put my passw

  • One Master Class Or Lots Of Dumb Classes

    Developers, I want to go about the best way to design a generic system. Lets say the app is a simple chart axis. You have 3 classes - ticks, labels and a axis. My question to you is theres a few ways to go about doing this. 1) Draw all the ticks 2) D

  • Connecting iPod does not automatically open iTunes...

    Sorry if this is a repost, but I tried a search and I couldn't find anything. I want iTunes to launch when I connect my iPod but it doesn't. I have to manually open iTunes myself. And yes, I have the "Open iTunes when this iPod is attahced" option ch

  • Hotkeys for ALV Buttons?

    Hi experts (from SAP), I read the documentation about HOTKEYS (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b951297a6d2d65e10000000a42189c/frameset.htm) and I'm wondering why the HOTKEYS are not supported for ALVs respectively for Buttons whic

  • How do I Enlarge the Illustrator Pasteboard?

    Is there any way to increase the pasteboard from 227.5"W and 227.5"H? is there a 3rd party plug-in i can get to enlarge the pasteboard?