Problem in Sapscript , After creating a copy of Standard Script

Hello friends,
                   I have copied a standard script WASCHEIN into ZWASCHEIN, now all the data is coming from driver program SAPM07DR. Now there is one field which is not coming from the standard program,
                  Is there any way i can capture the field in my script without making changes in the standard driver program like a select statement in the script.
Thanks.
Edited by: Vijay Babu Dudla on Dec 16, 2008 3:24 AM

Hello Poonam,
Sorry i think you are not aware of using PERFORM stmts in SAPScripts !!!
@ Amit you can try this bit of coding:
/:           PERFORM F_GET_KTEXT IN PROGRAM ZPROGRAM
/:           USING &MSEG-NPLNR&
/:           CHANGING &V_KTEXT&
/:           ENDPERFORM
Create a Subroutine-Pool Program: ZPROGRAM where you write the FORM for the above PERFORM.
FORM f_get_cust_details
TABLES fp_it_input  STRUCTURE itcsy
              fp_it_output STRUCTURE itcsy.
DATA:
  l_v_nplnr TYPE nplnr,
  l_v_ktext TYPE auftext. 
  READ TABLE fp_it_input WITH KEY name = 'MSEG-NPLNR'.
  IF sy-subrc = 0.
    l_v_nplnr = fp_it_input-value.
  ENDIF.
  SELECT SINGLE KTEXT
  INTO l_v_ktext
  FROM aufk
  WHERE aufnr = l_v_nplnr.
  LOOP AT fp_it_output.                                     "#EC *
    IF fp_it_output-name EQ 'V_KTEXT'.
*     Modifying the output table with the customer number
      fp_it_output-value = l_v_nplnr.
      MODIFY fp_it_output.
  ENDLOOP.
ENDFORM.
Please note that passing the USING / CHANGING parameters through tables of ITCSY structures is a standard way of doing this & you cannot change this )
Hope this helps.
BR,
Suhas
Edited by: Suhas Saha on Dec 16, 2008 9:39 AM

Similar Messages

  • Missing field info. after created by copy Customer

    Dear Experts,
    Found a problem relevant to creating by copy Customer using XD01. After extending Co. Code & Sales Area Data for the same Customer with ref. to another Co. Code & Sales Area, found that info. of a field "Prev.acct no. (Previous Master Record Number)" under "Co. Code Data - Account Mgt - Reference data", and Partners under "Partner Functions" of Sales Area Data could NOT be copied. Is it a standard SAP logic ? Could you advise reason for this ? Besides these, any other field(s) also CANNOT be copied after creating by copy Customer ?
    Many Thanks,
    KH Fong

    Hello KH Fong,
    "Prev.acct no." issue:
    The "copy with reference" is a SAP functionality that allows you to quickly create customers master data. Anyway not all the fields will be copied into the new target master data. Even if You create a customer with reference and all the information will be reported into the new master data.
    EXAMPLE:
    - In Accounting info screen: ALTKN (Previous Master Record Number) or PERNR (Personnel number) are not saved.
    - In Payment transaction accounting screen: LNRZB (Account number of the alternative payee) or ZAHLS (Block key for payment) are not saved.
    - In Correspondence accounting screen: ZSABE (Clerk at vendor), TLFNS (Accounting clerk's telephone number at business partner), TLFXS (Accounting clerk's fax number at the customer/vendor), INTAD (Internet address of partner company clerk) or KVERM (Account memo) neither are saved.
    Other fields as Reconciliation account, interest calculation indicator, terms of payment and so on should be reported into the new master data.
    "partner function" issue:
    Usually the partner functions, that are mandantory in a partner determination procedure are copied for the customer into the new sales area.
    You need to check if the relevant partner functions are set as mandantory partner function in the partner customising:
    - Transaction VOPAN
    - Select 'Cust.Master' -> Button 'Display'
    - Mark the relevant partner determeination procedure, that is
       assigned to the account group used, and double-click 'Partner
       Functions in Procdure' in the navigation on the left side
    - Check which partner functions are marked as 'MandFunction'
       These are the partner functions, that are copied.
    Hope above information is helpful.
    Best regards,
    Crystal Lin

  • Copy of standard script

    Hi all,
        Is it possible to copying the standard script from client-000 to QA?
    TKS in advance,
    Dharani.P

    hi
    U can directly copy even without transporting it  provided u have access to SE71 in Quality system .
    if so goto Se71 ..Utilities-Copy from Client-  enter the form name and target form name and F8 .. and activate the form ...
    or else use Program (SE38 tcode) RSTXFCPY ..
    if not do the same in DEVELOPMENT system and assign the form to a Package which  will ask for Transport reuqest and move this to Quality
    surya

  • Problem in PDF after creating from Indesign CS3 (transparancy)

    Hi all,
    Please give me a solution ASAP, its most urgent.
    We have used two color in one image, the color color is pantone.
    First we have selected the one pantone in image and in background another color. After creating PS using Prinergy and Distilling.
    I am not getting the result, the PDF which I have creating, the image contain only the main color not the background color, if I use the the "Advance - "Output Privew I am getting the result in PDF, what would be the problem, I have used "High Resolution" in Transparancy, still I am not getting the result.
    Please respond ASAP.
    Shaji

    Are you colours defined as spots.? If you do not need spot colours in your job, then change them to process in the swatches panel.
    Otherwise you will need to configure the RIP honour the overprints.

  • Facing Problem With DLL After creating Installer

    Hi
    I Have Developed to Test The CAN Hardware.
    I am Using third party USB to CAN device (Phytec PCAN)
    To communicate with PCAN device I have Used PCAN_USB.DLL
    I have Tested My Code with the hardware. It Works Fine.
    Then I Have Created EXE and Installer. and Install on the other system (
    LabVIEW is not installed on that system). But it is not communication with the
    Hardware.
    If I run the EXE on the system (where LabVIEW is installed) then EXE is
    communicating with the hardware.
    Please guide me for the same. LabVIEW version - LabVIEW 2009
    Please treats this on urgent Basis
    Regards
    Prabhakant Patil
    Regards
    Prabhakant Patil

    Hi Prabhakant Patil,
    How are the errors handled in your application ?
    I think this should be the first thing to have a look at. Just add to your VI an error indicator and you'll see what's happenning to your application.
    Regards,
    Da Helmut

  • SAP Script : Can"t create / Display / Copy Elements in EN language... Urgen

    Dear All,
    I am working in a Script, I copied a standard Script and tried to Create a new Window but it is not allowing me.
    I realised that, I can"t create a new window in English Version, I can do that only in German version.
    I feel it is cubersome that every time I have to log into German to do any editing. So Can you guys kidly let me know how can I do editing in English version.
    I have tried to Change Original Language into English from utilities -> Convert original language but that Field is Grey (Blanked out. So could not do that.
    I even tried to create new window in DE language, but when I tried to logon to English, it say form in English Language is Locked.
    Plese advice me .. this is urgent, without this information, I cann"t even start ... Should I contact with my Basis Consultant.
    Thanking you.
    Regards
    Venkat
    Thanking you.
    Regards
    Venkat.

    Hi there,
    the alst answer you got in your previous thread
    SAP Script : Editing in EN Version / DE version : Urgent pls
    was correct. But you really have to login in language DE first. If you do that, the translation option is enabled. After that follow the instructions again.
    try...it wil work
    chrs
    Hayo

  • Derivation Rule Problem After A Client Copy

    Hello,
    Has anyone ever encountered a problem with derivation rules after a client copy is performed? After a client copy, we have "some" FM and GM derivation rules (not all of them) that have to be manually copied from the source to the target client (line by line by line by line). I'm thinking that there has to be a way to prevent this since some rules are fine after the clent copy. Your input would be greatly appreciated.
    Will

    I believe that we have resoved our issue. For the derivation rule values that would never copy, we re-created these again starting in DEV and transported the derivation rules throughout the entire landscape (QAS and PRD). Evidently some derivation rules (and the related values stored in the tables) were created directly in Production. During a client copy the values in the tables for the derivation rules that were created directly in our Production environment would not copy to our QAS environment. Those rules were stored in a table named FMFMOAPRD1000122. Note that PRD is in the table name. After re-creating the rule and transporting it through the landscape, the table was named FMFMOADEV1000152 (for example).

  • DSO activation problem after creating the secondary indexes

    Hi,
        I am facing the problem with DSO activation after creating the secondary indexes.
    •  Compared with Info Cubes there is no functionality available which allows dropping and recreating a secondary index before/after the data activation.
    As a workaround I can write a simple report which drops and creates the indexes on database level.
    By using a process chain, we can simply insert the drop index report before data activation and the create index report after the data activation process.
    Can any body help me step by step procedure or Material to write the programs for delete index and create index reports on DSO object?..
    Thanks in advance for your help.
    Thanks & Regards,
    Bala

    hi,
    in BI if you are using the dso for reporting then you can simply chk the settings of dso for SID generation.
    no need to create the indexes or delete it.
    if the dso is not used for report then no need to use indexes.
    Ramesh

  • Network Problem After Creating Database

    Hi,
    We install Oracle 11g on Windows 2008 server. Everything is working fine till the installation of Oracle software. After creating the database when we restart server the network cable shows a unplug for 20 miniutes.
    If we disable all the Oracle service than everything goes fine.
    Please Suggest.
    Thanks and Regards
    Sarfaraz Zomberkar

    This is an interesting problem. Please provide a little more information.
    * When you state Oracle 11g, exactly which release version: 11.1.0.6, 11.1.0.7, 11.2.0.1, or 11.2.0.2 - did you install the 32 bit Database software or the 64 bit Database software?
    * Which options were selected during the installation, and did you tell the installer to create a database during the installation?
    * Exactly which Windows 2008 server version: R1 or R2 - and is the operating system 32 bit or 64 bit?
    * How much memory is in the Windows server?
    * How many network cables are connected between the server and a network switch(es) - you will probably need to look at the back of the server to determine this answer?
    * What are the exact names of the Oracle services that you had to shut down - most likely, the Startup Type of those services are set to "Automatic"
    * Have the appropriate network person take a look at the log of errors on the network switch that is connected to the server - there is a chance that the network switch sensed a problem, such as excessive transmission errors, and shut down the network port to prevent a broadcast storm or a similar problem.
    * Have the appropriate person check the Windows event logs. Do those logs identify the reason why the network port went down?
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Problem in after create  trigger

    hi all,
    i tried to track the creation of all objects in scott user. so from one dba user
    i wrote a After Create trigger for scott schema(schema level trigger) like this,
    create trigger create_log after create on scott.schema
    begin
    insert into create_log_t values(login_user,sysdate,dictionary_obj_type,dictionary_obj_name);
    end;
    trigger has been successfully created.After that i tried to create some objects in scott schema,but i could not. it gives me this error,
    SQL> create table dd(d number);
    create table dd(d number)
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00984: column not allowed here
    ORA-06512: at line 2
    can anyone help me to come out from this problem.
    thanks in advance!
    kathir

    What is LOGIN_USER? Did you mean USER?
    Cheers, APC

  • Problems Delta Extractor after Homogeneous Source System Copy

    Hi,
    We have R/3 system landscape HUD, HUQ, HUP. And we have BW system landscape BWD and BWP.
    We connect BWD to HUQ and BWP to HUP.
    We made a homogeneous system copy from HUP to HUQ.
    We haven´t made any homogeneous system copy from BWP to BWD.
    We have applied the next OSS note after source system copy:
    325525 Copying and renaming systems in a BW environment
    184322 Procedure after DB copy of BW source system
    184754 Procedure after BW database copy.
    But we have problems in our BW Development (BWD), and we have the next Dump "MESSAGE_TYPE_X" when we can change any delta infopacket, the next text are from Dump:
    "MESSAGE_TYPE_X" C        
    "SAPLRSS1 " or "LRSS1F11 "
    "RSM1_CHECK_FOR_DELTAUPD" 
    I think that the problem is about inconsistencies between RSSDLINIT/SEL tables in BW side and ROOSPRMSC/F tables in R/3 side.
    Please could you tell how can i solve this Dump, because i can restrart and initial and delta packet for different Datasource and i can´t do anything.
    Thanks in advanced,

    Hi,
    We are upgrading our R/3 system from 4.7 to Ecc 6.
    While copying database tables we are using Clinet Carrier tool which is considering only clinet dependent tables. Hence we are loosing our BW delta queue entries in RSA7 of ugraded system.
    We found ROOSPRMSC and ROOSPRMSF tables and copying these 2 tables may resolve the issue and We copied and delta went fine.But we are not sure of only these are the tables to be considered.
    Please let us know what are the relevent tables to be considered to make the Delta to work while copying Data base tables from one system to another.
    Thanks in Advance
    Regards,
    R@ngzz

  • Problem verifying mail address after creating new iTunes account

    I was trying to create new iTunes account in UK store without credit card verification following Apple's guide: http://support.apple.com/kb/ht2534. After creation of new account, I tried to login with new credentials and got message that my email address is not verified. When I clicked OK to verify address, I got following message:
    Your request could not be completed. Make sure your computer's date is set correct and that accepts cookies from the iTunes Music store.
    Yes, time is correct and no problems with cookies. There is More Info that sends to http://support.apple.com/kb/TS1459 which is completely unrelated to me. That page explains Windows problems, do have OSX, latest update.
    Any idea what might be the problem ? TIA

    Don't create a new account. Update your previous account with any new/changed info and contiune to use it.

  • Problem after creating a Photo Book

    After creating a 100 Pages Hardcover Book, I can't buy it, because Iphoto opens a window, saying that not all pages are filled with photos. verity I try, it goes back to one page, but this page is perfectly filled like all the others, no missing photos or empty frames at all.
    ried to change photos and layout, with no result. Cant buy this book.
    What can I do? I don't want to create a whole new Book

    You may have still a placeholder photo as the backdrop for your pictures.  Check the page layout, if it is using an image background. Then you need to change the background or add background picture:
    If you used the Golden Gate Bridge background, drag a photo to the background.

  • Problem with new message after creating a note

    Has anyone else had this behavior in Mail 3? It happens to me quite frequently- the problem goes like this:
    Create a new note
    Hit done on the new note to save it
    Then, when trying to create a new message, nothing happens. I can hit the button all day and nothing happens.
    Next, upon quitting mail, I see all of these drafts show up and when I restart Mail, there are as many blank drafts as times I tried to create a new message.
    I've sent a bug report. It doesn't happen all the time but it has happened a lot to me.

    Yes!
    I have this same problem. I had not bothered to track down its root cause, but I do (rarely) use the Notes feature in Mail, so that may well be what triggers this annoying behavior.
    -Tony

  • Database fields empty after creating a new (Crystal) Report in MSY

    Hello,
    I have some issues to use Crystal Reports in Mobile Sales Maintenance (MSY). The situation is as follows
    My example is based on this standard report, which is working
    Report Name: BPartnerActivities
    Reporting Tool: Crystal Reports
    Category: Standard reports
    Subcategory: Lists
    Report Type: Report
    Data Source: Business Content provider
    Business Content Provider: BPActivities
    My requirement is to build a new report, which is based on the standard "BPartnerActivities" Report. If I use the "copy" functionality, I get an working Copy of the standard report. However, I need to modify the Business Content Provider, but I do not want to make the modifications on the standard content provider "BPActivities".
    I am now forced to used the "copy" functionality to create a copy from "BPActivities" for my own Content Provider "My BPActivities copy", which I want to use in a new report.
    Issue:
    I cannot modify the defined Business Content Provider after using the "copy" functionality and hence forced to create a new report from scratch to be able to set a different Content Provider.
    I create my own report "MyBPartnerActivities" based on the standard report "BPartnerActivities" using the same settings and assign my new business content provider.
    If I use the "Design Report" or "Modify Report" button, the Crystal Report designer pops up. Now the problem, the Crystal Report designer does not offer me any data below "Database fields".
    In the standard report, the "Database fields" has a child element "BOACTIVITY-ttx" with several field options. My own created report from sratch does now have anything?!
    Why my report does not offer my any data or is there anything additional to do?
    Another Test
    I tried to create another report using the standard content provider "BPActivities", but I have still the same issue.
    In addition I recongized that the "browse data" fuctionality does not work on the fields in the standard report. The path to the database file does not exist. It starts with "C:\WINNT\...", but my system has "C:\WINDOWS\...". But the executed report is able to retriev the data?!
    Unfortunately was not able to find any proper documentation, but I would really appreciate any help.
    Regards,
    Andreas

    Update
    It looks like that the *.ttx file is not uploaded/create to/on the MSY system. The system shows the file in the Crystal Report Designer, but there is no file on the file system. The confusing thing is, that any standard report is still working and does not really complain about a missing ttx file. I think the content of the ttx file is somehow embeded to the report.
    Does someone know how the system should behave? Should a ttx file be automatically created & assigned to any new report or do I have to create the file by my own every time?
    Cheers,
    Andreas

Maybe you are looking for

  • APO DP with MRP How does it work.?

    Hi Gurus,              I just wanted to know how the process works with APO DP implementation with MRP? Please let me know if you have documents available. It will be really great help Thanks a lot Regards, Raj

  • Disk Repairs Please Help!

    I know there are many posts about this problem, but none of them have seemed to help me out.  My Imac runs fast and fine, but when i pull up safari pages take unusually long to load and sometimes dont completely load without saying something like "23

  • Three finger zoom fatally broken

    For years, I have used the three-finger double tap to zoom the screen. It is now fatally broken. For no reason, the screen zooms in and will NOT unzoom. Three-finger doesn't work. pinch and zoom, nothing. The phone cannot even be restarted, because t

  • Can't select some words/regions in Mail on Mavericks

    So in 10.9 Maverics Mail application, I can only select some words and regions for editing. Some text simply cannot be selected via mouse cursor, or even via moving the cursor with the keypad arrows. Text on the left side, up to about 40 characters o

  • HT5019 how do i set display / video mirroring to be default?

    I've got a TV connected to my Mac, and when I boot up, I have to manually set display mirroring.  Can this be configured as a default setting?