Transfering fiels value

Hello gurus ,
                I have two transaction in module pool program , I want to transfer some field value ( ex plant) from one transaction to another transaction field ex (plant) .
      In selection screen its so simple , but how to do in module pool .
I am waiting for your valuable reply .
Regards ,
Joy .

Hi.
Use the memory ID Concept.
1. When u use memory id, make sure of the
following points.
a) The memory id is SAME as the variable name
b) Memory id should be in CAPITAL
c) When u want to import,
the variable name should be same as original one,
and should be declared in the same fashion only.
*-------- for Z1
report zmem_sha.
DATA : PERNR LIKE P0001-PERNR.
PERNR = '00004556'.
EXPORT PERNR TO MEMORY ID 'PERNR'.
CALL TRANSACTION 'ZTR01'.
*-------- For Z2 (having tcode ZTR01)
report abc.
DATA : PERNR LIKE P0001-PERNR.
IMPORT PERNR FROM MEMORY ID 'PERNR'.
BREAK-POINT
Regards,
Anversha

Similar Messages

  • Transfering APC Values Only

    Any thoughts on how to transfer asset APC values only on an parital intercompany transfer of an asset for a company that uses depreciation to the day from one Co Code to another ????
    Example: Asset 10001 on CoCode 1001 has a APC value of $15,000 and Acc Depr of $5,000.
    Need to transfer $5,000 APC value only to a new asset in CoCode 1002 (No accumlated depreciation value s/b transfered)
    Original Values
    Asset 10001 Co Code 1001
    APC            $15,000
    Acc Depr         5,000
    Net Value         10,000
    New Values after partial transfer
    Asset 10001 Co Code 1001
    APC            $ 10,000
    Acc Depr         5,000
    Net Value         5,000
    Asset 10010 Co Code 1002
    APC            $  5,000
    Acc Depr               0
    Net Value         5,000

    try to customize a new transaction type (e.g. copy 300)
    and use tcode OA81 - special handling of transfer posting - Trans. APC only
    A.

  • Transferring checkbox values on ALV to value in the internal table?

    Hi,
    I'm using an ALV grid (CL_GUI_ALV_GRID) to display an internal table.  I want users to be able to select one or many rows and those checked lines to be marked as X in my internal table.  I have a field, check(1), in my internal table displayed on the ALV, but when I tick one line on the ALV and debug, I don't see an X in the check field on that line in my internal table.
    I've successfully written code to select and deselect all lines and those values copy back to my internal table so why don't the single lines?
    CASE sy-ucomm.
        WHEN 'SELECT_ALL'.
    *   select all lines
          LOOP AT tbl_data INTO wa_data.
            MOVE 'X' TO wa_data-check.
            MODIFY tbl_data FROM wa_data.
          ENDLOOP.
        WHEN 'DESELECT'.
    *   deselect all lines
          LOOP AT tbl_data INTO wa_data.
            CLEAR wa_data-check.
            MODIFY tbl_data FROM wa_data.
          ENDLOOP.
    ENDCASE.
    Do I have to add some code in the PAI to transfer the values?
    Any suggestions welcome,
    Gill

    Yes, I have.
    The checkbox is appearing on the screen and is populated/cleared when I click the select/deselect buttons (this transfers the values in my internal table to the screen).  But when I just tick one line and then debug that line isn't showing as having X in the check field in my internal table.
    Somehow I need to transfer the tick values on screen to my internal table.

  • IC Web - Transferring verible values to Model

    Hi,
    Currently I am facing a problem in IC Web page, where in a variable value has to be saved in CRM Service ticket transaction.
    The variable value is computed in the controller class (Before on_save() method) and assigned to a Context node by calling Set_Attribute() method. The value is set with in the context.
    But the problem is the variable value is not Transferred to the BOL/GENIL layer while saving Service Ticket Transaciton. After saving, variable value is displayed on the view but not updated to the Service ticket transaction.
    Can anyone help me in solving the problem. Also please send me the documentation on BOL and GENIL.
    Thanks,
    Kunda Kishore.

    Gurus,
             I want to extend the model.I went to the transaction CRMV_GENIL.
    I go to total model and click on change icon. It says "    Do not make any changes (SAP data).
    My question is:
    If I extend the model will it get wiped out during upgrade.

  • Transferring the values from a known range of cells (containing formulas) in Excel using Applescript

    I have my AppleScript iterating thru email messages and pasting data (which arrives via email from a web form) into following cells: range "A1:A50"
    My Excel parsing of data occurs in cell formulas on Row 52, cells in range "A52:AZ52"
    I want to copy the cells in row 52 and paste the Values (not the formulas) in successive rows underneath the formula cells, starting with row 54: range "A54:AZ54"
    In pseudo code the code snip is:
    tell worksheet "sheet1" of workbook "Example" application "Microsoft Excel"
         repeat i from 1 thru to (count emails)
              paste some of the contents of (email item i) into sheet range "A1:A50"  
                                            # the above forms about twenty lines of code to get it
                                                  into Excel's cell object list or lists
              copy or get row 52   # or range "A52:AZ52" if that's easier/faster/better
              paste or set the values of row 52 into row (53+i)
         end repeat
    end tell
    Not sure whether to use the clipboard with "paste speical…[range] with []" or copy and set value statements. I only know how to reference existing ranges, not the cell contents of the range. I really need to know how to get contents of cells into a AppleScript object (list) that I can transfer. The 2004 Excel AS documentation is not helping me, please throw me a life line someone. :-)

    One other question if I may hijack my thread, if I wanted to set the column of the range programatically how would I do that?
    I know how to programatically set the row eg.
         set x to 54
         set r to range "A" & x & ":AZ" & x
         set tVlaue to value of r
    But I need something like Column (x) to make one of {"A","B","C",…}
    but column(2) gives me $B:B$
    and: "column(2) as text" (so I can halve it) beachballs Script Debugger and Excel and I have to stop the script and restart Excel!

  • Conversion error when transfering decimal values

    Hi
    I have to transfer a % value to a dynpro and I allways get a conversion dump.
    The original data object is 2 lenght 2 decimals type dec, the fields are all type dec.  Do I have to define something special in order to get the fields to display the decimals(anything without a conversion dump)?
    Or does anybody have a clue what is wrong.
    Thx.

    Make sure that the screen fields are defined correctly, need to be a length of at least 5.  I think that you could get away with 4.
    Yes, just tested it, you can use a length of 4.  The reason is is that the system wants to put a 0 in front of the decimals, so that's two spaces right there, then your actual decimals make it 4. 
    Regards,
    Rich Heilman

  • Error while transfering Value of  SY-TABIX to a variable  ?

    Hi,
    As per my req , i have code like this .
    {{ Data : idx3 type sy-tabix .}
    {READ TABLE ITAB2 with key----
    { if sy-subrc = 0 .
         idx3 = sy-tabix .
        DELETE i_sort INDEX idx3 .
    endif .}
    clear idx3 .}
    but it gets sortdumb ,
    While in debugging mode , i checked Sy-Tabix value is 11 suppose , but IDX3 = * ,
    The value is not tranferring to idx3,
    But its working fine for other records .??
    so what is the root cause of this kind of error , ??

    Hi all,
    I solved it ,
    Actuaally the problem was here .
    Data : idx1 , idx2 type sy-tabix.
    so system was considerings idx1 as char type ,length 1. and when after READ statement i transfered the value of sy-tabix to idx1 , if sy-tabix value is <= 9 , then IDX1 contains that value, but if SY-TABIX is 2 character , it cud nt transfer the value to IDX1 .
    so it was getting sort dumb.
    I declared like this .
    Data : idx1 type sy-tabix,
               idx2 type sy-tabix.  now its fine
    Anyways thanks to all for your help

  • Module pool custom fiel ZTEST doesen't memorize value

    hello, i have create a module pool with a custom field ZTEST declared in the TOP include. The same name i have declared in the Dympro '0100'. In the after input i tried to get the value but the variable ZTEST doesen't contains value also if i have filled in the dympro; infact when i press "enter button" the value is not saved in the CHAIN ENCHAIN.
    Why?
    Please help me
    Marco

    Please check if there is any FIELD statement with the new field in the screen flow logic, viz.,
    FIELD ZTEST
    the system transfers the values of the screen fields to the program fields only after the FIELD statement

  • Stock value for stock transfer from depot (RG23D) to manufacturing (RG23A)

    Dear all,
    The forum posts that I found are all relating to the process of how to do stock transfer from depot plant to manufacturing plant.
    The question I want to post is relating to the transferred stock value.
    When stock first goes into depot plant (RG23D), the excise duties (CVD, Education Cess, Higher Education Cess, Secondary Education Cess) are all inventorized. However, in manufacturing plant (RG23A), they are CENVATABLE and not inventorized.
    In the transfer of stock from depot to manufacturing, how can we split out the stock value from depot and take out the excise duties to CENVAT in manufacturing plant?
    If using Stock Transfer process (move stock from depot to manufacturing),
    1. Create Stock Transfer Order in ME21N using UD order type
            no accounting
    2. Create DO in VL10B and goods issue
    During goods issue, moving average of stock in depot plant, will increase stock with the same value in manufacturing plant and reduce the stock value in depot plant. How can we reduce the stock value transferred to manufacturing plant by the original excise duties amount, and pass this amount into J1IEX? Is it done in this step or later steps?
       Dr Stock into manufacturing plant  [this value by right, should be reduced as it consists of original excise duties in RG23D?]
            Cr Stock from depot plant
    3. J1IJ- RG23D selection for excise invoice for delivery at depot
        no accounting
    4. VF01 for proforma invoice
       no accounting
    5. MIGO into manufacturing plant (capture excise invoice)- part 1 register. the excise duties can be manually keyed in based on the original RG23D entries when stock is first brought into originating depot plant
         no accounting
    6. Enter Incoming Excise Invoice by J1IEX
         Dr CENVAT Input AED
         Dr CENVAT Input BED
         Dr RG23A ECess
         Dr RG23A SHECess
               Cr CENVAT clearing
    7. Question: Where to Debit CENVAT clearing? In normal domestic purchase process of raw materials into manufacturing plant, Dr CENVAT clearing will be posted during MIRO time.
    If this process is not the correct way to do, please advise the standard SAP recommended way to transfer from depot to manufacturing plant. 
    Thank you in advance.

    You have to add the Excise duty condition types as a Delivery cost Pricing condition types in STO Pricing procedure and have used them in STO. In Pricing procedure, there is no concept of Deductible and Non Deductible. So, what ever the Delivery cost condition you add in Pricing procedure, the amount gets loaded on to the Material cost..To avoid this, a negative condition type needs to be inserted in Pricing procedure with a different accrual key.
    You have to add One Positive condition and One Negative Condition type for the same. Negative condition type is to reduce the condition value from the Material cost during GI.
    Try this scenario in development server and revert back with your observations.

  • VA01 creation of new feild in Additional data tab B and populating values

    Hi All ,
           I had created  a new field zzordqty in VA01 item level -> additional Data  Tab B  SE51 -> SAPMV45A-> 8459.
          The values while creating a sales order are coming from Inbound FM Idoc_input_orders .  for this particular field the value is stored in segment E1EDP35 when QUALZ is 011 the value of CUSADD is to be shown of the screen of VA01.
          For this I had tried to create a enhancement point in FM Idoc_input_orders , and tried to capture the value of CUSADD into XVAP-ZZORDQTY .
           But as soon as i come out of the enhancment point the value of XVBAP-ZZORDQTY BECOMES 0 .
           And at the screen level of SAPMV45A i had created a PBO and transfered the values from XVBAP TO VBAP .
            But since the values are getting cleared , the value of zzordqty is zero and also niether it s getting updated at table level .
            I request to let me know , how should i proceed further , either to use exists or badi's
    Thanks & Regards,
    Kavitha

    hi,
    you can do it in include MV45AOZZ. the method should be for module in PBO of subscreen 8459.
    and ifyou are not able to pass it to any standard structures( like xvap, or vbap or some thing like that) you can export it from PBO or PAI module) and catch it in the save exits (user exits)
    Edited by: Soumyaprakash Mishra on Oct 2, 2009 11:08 AM

  • Transfer within a company for zero value assets

    Hi experts,
    I am transferring zero value assets (no acquisition cost, no depreciation, zero NBV) from 1 business area to another business area, therefore use tcode ABUMN (Transfer within company code) with transfer variant 4 (Transfer within a company code).
    However, the transaction is not able to take place with the following error message:
    "Retirement/transfer on asset xxxx 0 takes place with no values."
    Actually in performing asset retirement, the same message appear, but it is just information (yello) and could be ignored (transaction still go through sucessfully).
    Is there any configuration that needs to be done in order to perform retirement and asset transfer without error messages? Is there anything i need to enter when doing the transactions?
    Your sharing will be very much appreciated.

    Hi Paul,
    Thanks !
    In this case, the old asset will be showned as asset retirement instead of intracompany assets transfer. Is there any way to do a transfer for this type of transaction?

  • Value does not exist for "..." in connection...

    Hello,
    I have following issue using Design Studio 1.3.
    I was changed my source of dashboard from universe to Bex Query.
    When it was done I have received following Script Problem related to CheckBox
    Description
    Location
    Event Script
    Component
    Application
    Type
    Value "Sourcable" does not exist for "GP_XSRCB" in connection "cuid:AdpcHfZ9h0VKrXD0XhomzOs"
    Line 3
    On Click
    CHECKBOX_1
    [rkams1157] S2P_PROTOTYPE_MDM_001-002 - dev
    Design Studio Script Problem
    Below please find the Script syntax:
    if(CHECKBOX_1.isChecked())
      DS_2.setFilter("GP_XSRCB", "Sourcable");
    else
      DS_2.clearFilter("GP_XSRCB");
    I would like to note that this script on CheckBox works fine based on universe as a source.
    Please advice.

    Dear All,
    I am also facing same problem, while doing PGI (Post Goods Issue)
    Can any one help in this please.
    And the error message was
    Characteristic value  SEL F1P ADD 82947 does not exist for characteristic PAPH4 (ProdHier01-4)
    Message no. KE0C133
    Diagnosis
    The characteristic "PAPH4" ("ProdHier01-4") should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value (" SEL F1P ADD 82947") is not valid in CO-PA.
    System Response
    The data is not consistent and therefore cannot be transferred to CO-PA.
    Procedure
    With the function Maintain Characteristic Values, you can add characteristic values to those that are valid.
    1. When, I check contents of table MARA-PRDHA, it contains 17 character Alphanumeric input "SEL F1P ADD 82947"
    2. When, I check character PAPH4 in KEA5-->Data type was CHAR and length was 17.
    3. Characterstick PAPH4 cannot be maintained using KES1.
    Thanks & Regards
    Sahas

  • Transfer Duty Values from Customs Declaration to ECC

    Does anyone have any experience in transferring duty values to a document in ECC  (i.e. a Purchase Order) after calculating it in a Customs Declaration?
    I see in the IMG where you can assign duty types in the Customs Declaration to pricing condition types in the Purchase Order (Assign Duty Type to Pricing Condition Type at Feeder System Level) to be used in calculating customs duty in the GTS Customs Declaration. Is there a way to display the Duty Value that is calculated back in the Purchase Order (either before or after Goods Receipt) or in some other document?
    Has anyone had any experience with this?

    Did you find the code for this routine?
    The SAP Help information (http://help.sap.com/erp2005_ehp_03/helpdata/EN/46/6d5cf006290ad5e10000000a11466f/content.htm) indicates that the following BAdIs must be implemented: BUFFER_PO_DATA and BUFFER_PO_DATA_CLEAR.
    It then directs you to Sales and Distribution -> Foreign Trade/Customs -> SAP Global Trade Services u2013 Plug-In -> Customs: Retail: Retransfer of Calculation Results from SAP GTS or Customs: Retail: Delete Buffer for Retransfer of Calculation Results.
    However, I do not see this in the IMG in the Feeder. Does anyone else see this? Has anyone had any experience with how this can be used?

  • Value in new depreciation area is Zero

    Hello All,
    I have created a new depreciation area 11. In OABC it is set as 01 (values from book depreciation). In OAYZ, I have assigned the new depreciation area to new asset classes. Then I transferred to value from old assets to new assets by ABUMN and run AFBN for opening the new depreciation area.
    In AW01N, I can see the new depreciation area for the asset but with zero value. In the transactions I see the transfer with transaction type 158 and with zero value for the new area. The transaction type taken for book depreciation is 310 and has the correct value. But earlier when I did the testing in quality the transaction type was 310 for both the areas.
    In AFBN, the check box Leave initial value was unchecked initially and when I ran it again I result was processed 0 and error 0. I reversed one asset and transferred to new asset class containing both depreciation area again. But again the value in depreciation area 11 is Nil.
    Please help.
    Thanks,
    Sangram

    Hi Sangram
    Since you are already executed AFBN with the option "Leave initial values", you cannot update the records now, as the table entries have already would have got created in tables ANLB,ANLC, etc.
    Now if you want to copy values from other depreicaiton areas to new dep area, one option is to copy a ZZZAFANEW1 by doing a small modification (that is by changing all ABAP commands INSERT to UPDATE) and execute this program.  This will update the values from the source depreciation area to target depreciation area, even if table record already exists.
    This code is available in SAP note no.317806
    Test it thoroughly before using it in Production client.  Also take care to enter a correct source and target depreciation area to avoid further problems.
    Hope this helps.
    Regards

  • Asset value adjustments.

    Hi Gurus,
    i have a problem in asset accounting.
    one of my user did GR wrongly so i need to transfer the asset vlaue to correct asset.
    the Gr was done in 2008 Dec.
    as the posting periods were already closed iam doing asset transfer in 2009.
    first i writeup the depreciation posted in 2008, then iam doing trnasfer by ABUMN, but when iam doing it system doing soem amount back posting to the previous accoutn as Adjustment amount.
    what exactly this amount is and i need to transfer the whole value wrongly posted to the first asset,but cant successful.
    Gr posted to asset X which is already in use.
    iam transfering the value to Y in 2009.
    but i need to tranfer around 4000
    and i did Writeup before doing the tranfer.
    but when doing ABUMN system posting to X from Y amoutn 200 as value adjustment which user dont want.
    Pls help me to resolve this issue.
    thanks in advance

    Raj understood the logic of value adjustment line. The values are posted in asset and acc dep GL's only in the new Cocd.
    But now how do we scrap the asset using abavn wherein the result should make asset a/c and acc. dep a/c zero. When we tested in QA to retire this asset via abavn, then the resulting entry was asset a/c Cr and BV of FA sold a/c Dr and the asset report shows asset value as Nil but the Acc dep A/c still shows the dep amt. So, obviously instead of debiting the Acc dep a/c in abavn it has debited to BV of FA sold A/c. Now, my problem is how to nullify these using Asset accounting functionalities. Since its post automatically accounts and recon accounts , so we cant post a manual JE.
    Looking forward for your advice.

Maybe you are looking for

  • Mount an external hard drive in single user mode

    Do any know how to mount an external hard drive in single user mode: I've issue the following command: /sbin/mount -uw / mkdir /Volumes/ex1 /sbin/mount_hfs /dev/disk2s3 /Volumes/ex1 (I've checked my external hard drive using df -k showing the device

  • Iphone is about to synch 2gb of songs, then suddenly drops to nothing

    Hello My iphone was allowing add to itunes library/transfer to iphone no probs until it sort of crashed and showed the usb > itunes screen of death thing. I tried to restore on main computer but main computer kept failing to download the restore driv

  • Read lines from text-file in specified [ITEM]

    Hello, are there any functions integrated in Labview to read a text-file which looks like this: [ITEM-NAME_01] parameter1 = here parameter2 = 1123 parameter3 = a453 [ITEM-NAME_02] parameter4 = here parameter5 = 1123 parameter6 = a453 Can this be done

  • Reinstall MacOS 10.7 Lion on Macbook A1181 Problem

    Hello, I have an urgent problem to be solved, if you can do it, pretty please. I have received as payment, an old Macbook A1181, mid 2007, with 3gb RAM in plus of its basic configuration. It camed with Lion 10.7 on it, but full of old files, settings

  • Creating a infotype 0014 automatically in the background when 0008 changes

    Hello All- We have a wagetype on Infotype 0014 and when we create a record with this wagetype then it is having a balance wagetype in IT0015 so IT0015 with balance wagetype will automatically popup when we create a record in IT0014 and this is becaus