How to perform binding in workflow?

Hi all,
Please tell me what are types of binding in workflow?
and how we perform binding to transfer data from event->workflow,workflow->task etc and
how i know which container elements are passed in binding?
Regards,
Arpita.

Welcome to the world of WORKFLOWS
binding to transfer data from event->workflow,workflow->task etc and
how i know which container elements are passed in binding?
You can perform Binding event to workflow from the BASIC DATA (CTRL + F8) of the workflow   hee in the version independent tab you can see a tab START EVENTS here under this tab you will mention the BO ( Business Object Name) and EVENT that for which you want to trigger the workflow  here you will do the binding between WORKFLOW AND EVENT conatiners.
check this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b0ae453d11d189430000e829fbbd/content.htm]
Even you can send the values from the ABAP program to the workflow conatiner by using the various FM
Search SE37 by using SAP_WAPI_*

Similar Messages

  • How can i execute a workflow using a bapi/wapi??

    Hi All,
    How can i execute a workflow using a bapi/wapi??
    pls advice
    thanks

    Hi Hrus,
    it's not as simple as a single BAPI to approve a workflow.
    Workflow comes with a Workflow API (WAPI) that you can use to programmatically interact with the workflow system. The WAPI is implemented as a group of RFC-enabled function modules that are prefixed with "SAP_WAPI_".
    Approving a workflow is simply taking a decision path for a workflow item. It is logically no different to rejecting the same workflow item or any other workflow decision.
    As part of NetWeaver workflow is tightly coupled to the WAS platform you are running on so you may need to perform WAPI operations slightly differently on older releases.
    Some of the WAPI calls you might need to use include: -
      SAP_WAPI_GET_HEADER to get the workitem header
      SAP_WAPI_READ_CONTAINER to get the workitem container
      SAP_WAPI_GET_OBJECTS to get the attached objects
      SAP_WAPI_DECISION_READ to get a list of possible decisions
      SAP_WAPI_SET_WORKITEM_STATUS to set the workitem status
      SAP_WAPI_WRITE_CONTAINER to write to the workitem container
      SAP_WAPI_EXECUTE_WORKITEM to execute the workitem
    I usually do what you are trying to do by adding the decision to the workflow container and then executing the workflow.
    Be warned, you can really stuff things up if you get this wrong! Make sure you know what you are doing.
    Quoting from Practical Workflow for SAP by Alan Rickayzen, et al from SAP Press...
    Writing directly to the workflow container is dangerous because it can compromise the integrity of the process.
    ...be careful that you do not waste time duplicating existing ad hoc features of SAP's Workflow Engine.
    For example you can use events (combined with wait steps), instead of container modifications to force the workflow to restart.
    Cheers
    Graham Robbo

  • How to perform calculations using column data in BI Publisher

    Hello guys
    I am very new to BIP, and recently I am learning to create new templates using XML files..
    I am trying to create a report that has Account Amount, Amount Net Amount, PM_Amount and a New field say "X"
    For Account Amount it is what it is, but for Net Amount it is "Account Amount/40%", for PM_Amount it is "Net Amount x (Account Amount/30)" and for field X it is "(Net Amount + PM_Amount)/column A" where column A is another data field in the XML file but it should not be included in the template report..
    Could anyone help me with how to perform such kind of calculations in BIP Template builder? In OBIEE, it is very easy that I can just use column formula, but in BIP I still haven't figure out the way yet..
    PLease advice
    Thanks

    Thanks for the reply..
    I looked at the link you provided already, what I wanna know is how to exactly apply the expression in my calculation. In other words, I know that Column C = "Column A div Column B", but in BIP form property, how do I actually substitue "column A" with the actual column..
    I wish I could post the XML, but it is huge, it contains 6 data sets and more than 100 columns. I only need 15 columns on my template.
    On the form property of each measures, in the "advance tab", I see codes like <?accountamount?>. Now I wanna have a new column said "PM_Amt" which should be "(accountamount div %40) x column B". So I just randomly select another column said "payment". I rename it to "PM_AMT" and on its "advanced tab" it is still <?payment?>. So right there, if I wanna replace that code with a new one that does "(accountamount div %40) x column B" calculation, how would I do it? What would be the syntax including how to propertly refer to the right column field as part of the expression?
    And do I have to always use xdofx between <>? how would I know?
    Please advice if you understood what I am trying to say
    Much thanks
    Edited by: user7276913 on Sep 14, 2009 11:24 PM

  • How To Perform Lot Split Transactions Using Transaction Open Interface (MTI)

    Can anyone give me some guidance on how to perform lot split transaction using MTI?
    I am using the following code:
    DECLARE
    l_transaction_type_id NUMBER := 83;
    l_transaction_action_id NUMBER := 41;
    l_transaction_source_type_id NUMBER := 13;
    l_org_id NUMBER := 1884;
    l_txn_header_id NUMBER;
    l_txn_if_id1 NUMBER;
    l_txn_if_id2 NUMBER;
    l_txn_if_id3 NUMBER;
    l_parent_id NUMBER;
    l_sysdate DATE;
    l_item_id NUMBER :=287996;
    l_user_id NUMBER;
    l_distribution_account_id NUMBER;
    l_exp_date DATE;
    BEGIN
    --For Lot Merge, there should be only one resultant lot.
    --The transaction_quantity populated in MTI/MTLI should be the entire
    --quantity that is available to transact for the org/sub/item/locator/LPN in
    --that particular lot number.
    --Get transaction_header_id for all the MTIs
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_header_id
    FROM sys.dual;
    --Get transaction_interface_id of resultant record
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id1
    FROM sys.dual;
    l_parent_id := l_txn_if_id1;
    l_sysdate := SYSDATE;
    l_user_id := -1; --substitute with a valid user_id
    l_distribution_account_id := NULL; --needed for lot translate
    l_exp_date := NULL; --set if required
    --Populate the MTI record for resultant record
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    2, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    3, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    --Get transaction_interface_id of Source record-1
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id2
    FROM sys.dual;
    --Populate the MTI record for Source record-1
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id2, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --transaction_action_id
    -200000, --transaction_quantity
    'EA', --transaction_uom
    -200000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    1, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the Source record-1
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id2 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , -200000 --transaction_quantity
    , -200000 --primary_quantity
    END;

    the first MTI record should be the source record ...ie. it should have transaction quantity as negative.
    new set of MTI records should have positive transaction quantities.
    Also ensure that sum of transaction quantities for the set should be 0...
    What is the error that you are getting?
    Thanks,
    Hrishi.

  • How to perform a classic Mac OS search in Tiger

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • HP Officejet Pro 8500 Wireless A909g, CB023A, how to perform full-reset

    I own this printer since December 2009, during the first 15 months I had several problems/defects and also repairs and excange units. The problems continue on and in September 2011, in October 2011 and in November 2011 I got excange devices after repair attempts (one device was delivered without any function). The last device worked with one (?) (minor resp. accepted) problem until today resp. June 2014. ...this is the previous history ---> ---> I need sequence to perform full-reset on HP Officejet Pro 8500 Wireless A909g ---> Please send procedure/sequence how to perform a full-reset on this printer - not hard reset nor semi-reset: full-reset !!! Please send this information without unnecessary questions about my problems: My only problem is to own such printer!

    Hello AlexBW,
    I received your private message and I thank you for writing me back.
    One other step that I think may assist us would be to please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Once you have the unit connected directly to a wall outlet, follow the instructions that  I provided in the private message.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Thank you once again for your time.  It has been a pleasure working with you.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How to re-start the workflow for Shopping carts in WAITING status

    Hi
    We are using 1-step approval work flow, and we get some strange issue. We can add approver in the workflow, but after we click order button and back to check status again, sometimes there will be "Ad-hoc agent not found" issue. Do you know how to solve?
    And one workaround for user is to re-add the approval, and sometimes the shopping cart back to normal. But sometimes, after we add the approver, the shopping cart are in waiting status:
    Workflow Item:
    Workitem-ID 000000714642
    Task WS10000276
    Text One-Step Approval: Value limit: Shopping Cart
    1000114698
    Status WAITING
    Statustext Waiting
    Date 13.06.2008
    Time 10:41:22
    So may I ask how to re-trigger the workflow?

    Hi,
    Thx for that. I need to trigger the Approval workflow to go the the approval manager.
    Can u give me the document on this? thx,  kerry.liu [at] ap.effem.com.
    Thx very much
    Kerry

  • How to perform a clean install of Windows 8 / 8.1

    This document describes, how to perform a clean install of Windows 8.
    Windows 8 System Requirements
    1 GHz or faster processor (with PAE, NX and SSE2 support)
    1 GB RAM (32-bit) or 2 GB RAM (64-bit)
    16 GB available hard disk space (32-bit) or 20 GB (64-bit)
    DirectX 9 graphics device with WDDM 1.0 or higher driver
    Additional requirements to use certain features:
    To use touch, you need a tablet or a monitor that supports multitouch.
    To access the Windows Store and to download and run apps, you need an active Internet connection and a screen resolution of at least 1024 x 768.
    To snap apps, you need a screen resolution of at least 1366 x 768
    More Info: http://aps2.toshiba-tro.de/kb0/TSB2903E20000R02.htm

    I have a new SSD drive and need to either migrate my old HD data, including the Windows 8.1 OS or do a a clean install.  I have obtained the ISO, prepared the boot for the flashdrive and downloaded the install software.  It asks for the product key.   I used the suggested BIOS reader and obtained "a" product key off the BIOS and used that it but (as above) it does not recognize the image.
    How id I get my single Windows license onto my new SSD HD?  Reload, clean install, ???
    How do I get the proper product key or confirm it is correct? 
    It is a new system with little data that I need to copy. I just want the operating system.  I have the driver disc that came with it.

  • How to Perform a "Clean Install" - Offline installer link not working...

    The thread containing - "How to Perform a Clean Install of Flash Player in Mac OS X" -  was an answer given by Mike M. several times in this forum. I attempted to access the "offline installer" link that was offered, but it does not seem to be working. Does anyone have an updated link to a functional offline installer that I can use to finally download Flash Player for Mac OS X v. 10.9.5?
    I receive an error message stating "Error: Unable to proceed with the installation."
    Many of the photography and game websites I use (almost all, actually) FP, and I would really love to get back to my daily routine soon!
    Best Regards,
    Mel R.

    Hi Mel,
    The correct link is posted at the bottom of the Installation problems | Flash Player | Mac page, in the 'Still having problems section'. The download links recently changed and it appears the FAQ was not updated.  I have updated the with the help page URL as it's less likely that this link will change, and if it does, a re-direct to the new location would be implemented.
    Maria

  • How much performance can I get from my macbook?

    It's older then 2,5 years but still quite good for my needs. It has a 2.16 GHz Core 2 Duo and I never use all the CPU, it has 2GB 667MHz DDR2 SDRAM and I use it all. I am not using all the 120 GB of 5400 rpm HDD but I use it often and I feel how much it is slow. Intel GMA950 is slow also, but it seems to be enough for me and is able to manage my external LCD at 1920x1200 resolution.
    So I am thinking about two possible ways to have more performance:
    1. get a new macbook pro of 13" with 4GB RAM, newer disk (may be faster);
    2. upgrade my RAM, my Disk and may be my OS.
    I know that I can use only 3.3 GB of RAM if I place 2 x 2GB 667MHz so-dimms: one more GB free could make difference for me.
    About the disk, I know that my SATA is limited to 1.5 Gigabits but, using AJA System Test, I see that my internal drive is able to read and write about 29 MB/s, that seems to be even slower of my external 7200 drive that is using a Firewire 400 connection (39 MB/s).
    It seems to me that newer HDDs on market, eg. Seagate Momentus.4 5400 rpm, are able to give much better transfer rate. My SATA should be able to manage transfer rates till 180MB/s so SATA II HDD should not suffer of it. Is it right?
    Finally I could upgrade to Snow Leopard that should be a little bit faster then Leopard and with a completely new better finder.
    So my questions are:
    1. current 5400 HDD, like seagate Momentus.4, are really double or triple faster then my 2 years old hitachi? Even on my SATA controller?
    2. 667 MHz RAM compared to the new 1066MHz could be a bottleneck even at 3.3 GB?
    3. if I buy a new macbook pro, 2.53 GHz, 4GB RAM, 250GB HDD, how much performance difference will I notice between this new machine and mine with upgraded RAM, HDD & Os?
    It's a difference of about 1.280$ (1.499$ - 220$), so I would be really pleased to listen what you think and know about this kind of upgrade.
    Thanks a lot in advance.
    Fabio.

    Ok, I'll chime in with an opinion at least.
    Wait on the new book. Do a $90 ram/$29 OS upgrade and give up on spending money on a HDD.
    Ive been looking at upgrades to speed up my laptop till I can afford a new one and have decided to wait 12months till SSD prices drop to $1.75-$2.50/GB. I think I will windup with a faster computer than anything that will come out for another 12 more months. I love getting the latest and greatest, but since I wont be able to afford a whole new computer next year I will be happy with a much faster book.
    I am using 65% of my upgraded ram(4/3.3whatever), never all of my cpu and only 35% of my drive space. Also happy with my external LCD monitor.
    If this http://www.amazon.com/Intel-160GB-Mainstream-Retail-SSDSA2MH160G2R5/dp/B002IJA1E Q/ref=sr12?ie=UTF8&s=electronics&qid=1262409156&sr=8-2 hits $360 it will be a no brainer for me. The 'new computer' option will be right out the window.
    Marco

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

  • How to Create material master workflow

    Hi All,
    Can anybody tell me how to create material master workflow?
    i need to customize the workitem  for creating data in different views in MM01 transaction with restriction to particular user.
    Regards,
    Priti

    Hi,
    This link is to  display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
    Plz help me to create different views with respect to person.
    Thanks in advance.

  • How much performance do I gain by enable MAT

    Hi
    I must try to ask you guys before am try to enable MAT
    I have never entered the bios before so am a little scared that I will f-up the system.
    Do anybody here at this forum with similar memory and componemts have tryed to this MAT function.
    Must it be "Turbo" or "Ultra turbo" to activate MAT?
    How much performance do I gain by this.....do I notice it in games....Battlefield 1942 for an example..or?
    If the system do not like it...what happens, shutdown or? unstable?
    Please give some advice.
    Mr Lithesteel

    MAT will give you at least a 5% increase in memory bandwidth when set to turbo mode regardless of the brand of memory you have. I own a pair of generic value ram and i see an increase of around 5 to 10 percent memory bandwidth when turbo mode is on, however my sytem fails to boot when MAT is set to ultra turbo, try to mess with the bios so you could figure out the best configuration of your system (you could measure memory bandwidth with sisoft sandra http://www.sisoftware.co.uk/), By the way your system is prepped up for hyperthreading, you own an 865pe which means your board is ready for hyperthreading, now unless you own the first generation of pentium4 procs which does not support ht, you are all set to run with hyperthreading, it would be nice if you upgrade to win xp pro or at least win2k so that you would be able to maximize your system's potential, Win XP home edition  does not support multi-threading so youre loosing a lot of performance with it. Hope i helped you with your question.

  • How to  perform Annual Closing in SAP.?

    Dear SAP Gurus
    How to  perform Annual Closing in SAP.?
    Regards
    ND

    Year End activities:
    Some more from old postings
    Year end closing Activities:
    1. Calculate production work in progress on process orders which are not technically complete.
    2. Carry out Assessment cycle for Cost Centers.
    3. All month end closing Activities should be carried out.
    4. Carry Forward Balances to next year
    (With TC: F.16 we can carry forward the balance to next year.
    With TC: OBH2 copy the number ranges to next year
    Open next year periods by selecting the Posting Period Variant.
    then test by posting the transaction in F-02)
    Year end clsiong activities
    1)With TC: F.16 we can carry forward the balance to next year.
    2) With TC: OBH2 copy the number ranges to next year
    3) Open next year periods by selecting the Posting Period Variant.
    4) Calculate production work in progress on process orders which are not technically complete.
    5) Carry out Assessment cycle for Cost Centers.
    6) All month end closing Activities should be carried out.
    7)Carry forward Vendor & Customer Balances: TC: F.07
    2. Assets:
    i) TC: OB 52 - for assets 2 years can be openned at a time.
    ii) check which year is closed: TC: OAAQ
    iii) Close the year current year: TC: AJAB
    Note: Unless depreciation for all the months is posted for all the assets you cannot close the year.
    iv) Open year newyear: TC: AJRW

  • How to perform Error Handling in this Bdc Code

    Hi,
    I had created this BDC for the tcode MB1B and i want to know how to perform the ERROR HANDLING in it ..
    Plzz provide me guidelines for doing it . here's d code:-
    report ZBDC_MB1B
           no standard page heading line-size 255.
    include bdcrecx1.
    data: begin of record OCCURS 0,
          WERKS_001(004),     "Plant
          MATNR_002(018),     "ItemId
          ERFMG_003(013),     "Quantity in Unit of Entry
          ERFME_004(003),     "Unit of Entry
          LGORT_005(004),     "Storage Location
          CHARG_006(010),     "BatchId
          KDAUF_007(010),     "Sales Order Number
          KDPOS_008(006),     "Item Number in Sales Order
          end of record.
    PARAMETERS : P_FILNAM LIKE RLGRAP-FILENAME.
      initialization.
      CTUMODE = 'A'.
      CUPDATE = 'A'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILNAM.
      CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
         MASK                   = ',. '
         MODE                   = 'O'
         IMPORTING
         FILENAME                 = P_FILNAM
       EXCEPTIONS
         INV_WINSYS             = 1
         NO_BATCH               = 2
         SELECTION_CANCEL       = 3
         SELECTION_ERROR        = 4
         OTHERS                 = 5
      IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    start-of-selection.
    CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         FILENAME                      = P_FILNAM
         FILETYPE                      = 'DAT'
        TABLES
          DATA_TAB                     = RECORD
       EXCEPTIONS
         CONVERSION_ERROR              = 1
         FILE_OPEN_ERROR               = 2
         FILE_READ_ERROR               = 3
         INVALID_TYPE                  = 4
         NO_BATCH                      = 5
         UNKNOWN_ERROR                 = 6
         INVALID_TABLE_WIDTH           = 7
         GUI_REFUSE_FILETRANSFER       = 8
         CUSTOMER_ERROR                = 9
         NO_AUTHORITY                  = 10
         OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT RECORD.
      BEGIN OF SCREEN 1
    perform bdc_dynpro      using 'SAPMM07M' '0400'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RM07M-SOBKZ'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    *perform bdc_field       using 'MKPF-BLDAT'
                                 '22.12.2008'.
    *perform bdc_field       using 'MKPF-BUDAT'
                                 '22.12.2008'.
    perform bdc_field       using 'RM07M-BWARTWA'
                                  '411'.
    perform bdc_field       using 'RM07M-SOBKZ'
                                  'E'.
    perform bdc_field       using 'RM07M-WERKS'
                                  RECORD-WERKS_001.             "Plant
    perform bdc_field       using 'XFULL'
                                  'X'.
    perform bdc_field       using 'RM07M-WVERS2'
                                  'X'.
      BEGIN OF SCREEN 2
    perform bdc_dynpro      using 'SAPMM07M' '0421'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSEG-CHARG(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MSEG-MATNR(01)'
                                  RECORD-MATNR_002.             "ITEMID
    perform bdc_field       using 'MSEG-ERFMG(01)'
                                  RECORD-ERFMG_003.             "QTY.
    perform bdc_field       using 'MSEG-ERFME(01)'
                                  RECORD-ERFME_004.             "UOM
    perform bdc_field       using 'MSEG-LGORT(01)'
                                  RECORD-LGORT_005.             "ST.LOC
    perform bdc_field       using 'MSEG-CHARG(01)'
                                  RECORD-CHARG_006.             "BATCHID
    perform bdc_field       using 'MSEGK-MAT_KDAUF'
                                  RECORD-KDAUF_007.             "S.O.
    perform bdc_field       using 'MSEGK-MAT_KDPOS'
                                  RECORD-KDPOS_008.             "S.O.LINE ITEM
    perform bdc_field       using 'DKACB-FMORE'
                                  'X'.
      BEGIN OF SCREEN 3
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'DKACB-FMORE'
                                  'X'.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_dynpro      using 'SAPMM07M' '0421'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSEG-ERFMG(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'DKACB-FMORE'
                                  'X'.
      BEGIN OF SCREEN 4
    perform bdc_dynpro      using   'SAPLKACB' '0002'.
    perform bdc_field       using      'BDC_OKCODE'
                                                '=ENTE'.
    perform bdc_transaction using 'MB1B'.
    ENDLOOP.

    hi,
    check this code in bold letters.
    INCLUDE BDCRECX1.
    TABLES : MARC.
    TYPES : BEGIN OF TY_UPLOAD,
            MATNR TYPE MARA-MATNR,
            WERKS TYPE MARC-WERKS,
            STEUC TYPE MARC-STEUC,
            END OF TY_UPLOAD.
    TYPES : BEGIN OF TY_MARC,
            MATNR TYPE MARA-MATNR,
            WERKS TYPE MARC-WERKS,
            END OF TY_MARC.
    TYPES : BEGIN OF TY_MTART,
            MATNR TYPE MARA-MATNR,
            MTART TYPE MARA-MTART,
            END OF TY_MTART.
    DATA : T_MARC TYPE STANDARD TABLE OF TY_MARC,
         : T_UPLOAD TYPE STANDARD TABLE OF TY_UPLOAD,
         : T_BASIC TYPE STANDARD TABLE OF TY_UPLOAD,
         : T_SALES TYPE STANDARD TABLE OF TY_UPLOAD,
         : T_ERROR TYPE STANDARD TABLE OF TY_UPLOAD.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_BDCDATA_VIEW LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_DATA(3200) OCCURS 0 WITH HEADER LINE,
           IT_FIELD(3200) OCCURS 0 WITH HEADER LINE,
           IT_BDCMSG TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA GI_MSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : CHAR1(500),
          CHAR2(500),
          CHAR3 TYPE STRING,
          V_SELECTION TYPE STRING.  " For View Selection
    DATA : W_MARC TYPE TY_MARC,
           WA_UPLOAD TYPE TY_UPLOAD,
           WA_BASIC TYPE TY_UPLOAD,
           WA_SALES TYPE TY_UPLOAD,
           WA_ERROR TYPE TY_UPLOAD,
           WA_MTART TYPE TY_MTART.
    DATA : VAR TYPE N,
           VAR1 TYPE STRING.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.   "SELECTION SCREEN
    PARAMETERS: P_FNAM LIKE RLGRAP-FILENAME.
    PARAMETERS: P_BAS LIKE RLGRAP-FILENAME.
    PARAMETERS: P_SAL LIKE RLGRAP-FILENAME.
    PARAMETERS: P_ERR LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN : END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAM.
      PERFORM SEARCH USING P_FNAM.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BAS.
      PERFORM SEARCH USING P_BAS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_SAL.
      PERFORM SEARCH USING P_SAL.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_ERR.
      PERFORM SEARCH USING P_ERR.
    *&      Form  SEARCH
          text
         -->PFNAME     text
    FORM SEARCH USING PFNAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          STATIC    = 'X'
        CHANGING
          FILE_NAME = PFNAME.
    ENDFORM.                    "SEARCH
    START-OF-SELECTION.
      PERFORM UPLOAD_PROCESS USING P_FNAM.
      PERFORM OPEN_GROUP.
      PERFORM PROCESS.
      PERFORM CLOSE_GROUP.
      IF NOT T_BASIC[] IS INITIAL.
        PERFORM DOWNLOAD TABLES T_BASIC[] USING P_BAS .
      ENDIF.
      IF NOT T_SALES[] IS INITIAL.
        PERFORM DOWNLOAD TABLES T_SALES[] USING P_SAL .
      ENDIF.
      IF NOT T_ERROR[] IS INITIAL.
        PERFORM DOWNLOAD TABLES T_ERROR[] USING P_ERR.
      ENDIF.
    *&      Form  PROCESS
          text
    FORM PROCESS.
      LOOP AT T_UPLOAD INTO WA_UPLOAD.
        PERFORM CONV_ROUTINE  USING WA_UPLOAD-MATNR
                            CHANGING WA_UPLOAD-MATNR.
        SELECT COUNT(*) FROM MARA WHERE MATNR = WA_UPLOAD-MATNR.
        IF SY-SUBRC NE 0.
          MOVE-CORRESPONDING  WA_UPLOAD TO WA_BASIC.
          APPEND WA_BASIC TO T_BASIC.
          CLEAR WA_BASIC.
          CONTINUE.
        ENDIF.
        SELECT COUNT(*) FROM MARC WHERE MATNR = WA_UPLOAD-MATNR
                                        AND WERKS = WA_UPLOAD-WERKS
                                        AND PSTAT LIKE '%V%'.
        IF SY-SUBRC NE 0.
          MOVE-CORRESPONDING  WA_UPLOAD TO WA_SALES.
          APPEND WA_SALES TO T_SALES.
          CLEAR WA_SALES.
          CONTINUE.
        ENDIF.
        CLEAR : WA_MTART.
        SELECT SINGLE MATNR MTART FROM MARA INTO WA_MTART WHERE MATNR = WA_UPLOAD-MATNR.
        PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '0060'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'RMMG1-MATNR'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=AUSW'.
        PERFORM BDC_FIELD       USING 'RMMG1-MATNR'
                                      WA_UPLOAD-MATNR.
        CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'     " Function module
        EXPORTING
          MATERIAL                  = WA_UPLOAD-MATNR  " Material number
          MATERIALART               = WA_MTART-MTART          " Material Type
          SELECTION                 = 'V'              "
          TCODE                     = 'MM02'           " Tcode where view's are called.
        TABLES
          BTCI_D0070                = IT_BDCDATA_VIEW
        EXCEPTIONS
          MATERIAL_NOT_FOUND        = 1
          MATERIAL_NUMBER_MISSING   = 2
          MATERIAL_TYPE_MISSING     = 3
          MATERIAL_TYPE_NOT_FOUND   = 4
          NO_ACTIVE_DYNPRO_SELECTED = 5
          NO_AUTHORITY              = 6
          OTHERS                    = 7.
        READ TABLE IT_BDCDATA_VIEW WITH KEY FVAL  = 'X'.
        IF SY-SUBRC = 0.
          V_SELECTION = IT_BDCDATA_VIEW-FNAM.
        ELSE.
          CONTINUE.
        ENDIF.
        VAR = IT_BDCDATA_VIEW-FNAM+17(2).
        VAR = VAR + 3.
        CONCATENATE 'MSICHTAUSW-KZSEL(' '0' VAR ')' INTO VAR1.
        PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '0070'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'MSICHTAUSW-DYTXT(06)'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM BDC_FIELD       USING VAR1
                                       'X'.
        CLEAR VAR.
        CLEAR VAR1.
       PERFORM BDC_FIELD       USING 'MSICHTAUSW-KZSEL(06)'
                                     'X'.
        PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '0080'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'RMMG1-VKORG'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=ENTR'.
        PERFORM BDC_FIELD       USING 'RMMG1-WERKS'
                                      WA_UPLOAD-WERKS.
        PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '4004'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '=BU'.
       PERFORM BDC_FIELD       USING 'MAKT-MAKTX'
                                     'MTI_ESE_HALB_01'.
        PERFORM BDC_FIELD       USING 'MARC-STEUC'
                                      WA_UPLOAD-STEUC.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'MARC-HERKR'.
        PERFORM BDC_FIELD       USING 'MARC-HERKL'
                                      'IN'.
        PERFORM BDC_FIELD       USING 'MARC-HERKR'
                                      'MAH'.
        PERFORM BDC_TRANSACTION USING 'MM02'.
    move the error record into seperate internal table nad down load it ****
        IF MESSTAB-MSGTYP = 'E'.
          MOVE-CORRESPONDING WA_UPLOAD TO WA_ERROR.
          APPEND WA_ERROR TO T_ERROR.
          CLEAR WA_ERROR.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "PROCESS
    *&      Form  UPLOAD_PROCESS
          text
         -->PFNAME     text
    FORM UPLOAD_PROCESS USING PFNAME.
      DATA : PFNAME1 TYPE STRING.
      PFNAME1 = PFNAME.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = PFNAME1
          FILETYPE            = 'ASC'
          HAS_FIELD_SEPARATOR = 'X'
        TABLES
          DATA_TAB            = T_UPLOAD[].
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    "UPLOAD_PROCESS
    *&      Form  CONV_ROUTINE
          text
         -->P_INPUT    text
         -->P_OUTPUT   text
    FORM CONV_ROUTINE   USING    P_INPUT
                     CHANGING P_OUTPUT.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = P_INPUT
        IMPORTING
          OUTPUT = P_OUTPUT.
    ENDFORM.                    "CONV_ROUTINE
    *&      Form  DOWNLOAD
          text
         -->GI_FINAL   text
         -->PFNAME     text
    FORM DOWNLOAD TABLES
                  GI_FINAL
                         USING  PFNAME .
      DATA : FNAME TYPE STRING.
      FNAME = PFNAME.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                        = FNAME
          FILETYPE                        = 'DAT'
         WRITE_FIELD_SEPARATOR           = 'x'
            HEADER                          = '00'
          IMPORTING
            FILELENGTH                      =
        TABLES
          DATA_TAB                        =  GI_FINAL[]
          FIELDNAMES                      = GI_FIELDNAMES[]
      IF SY-SUBRC = 0.
        MESSAGE 'FILE DOWNLOADED SUCCESSFULLY' TYPE 'I'.
      ENDIF.
    ENDFORM.                    " DOWNLOAD
    Regards
    Siva Prasad

Maybe you are looking for

  • Can't use Home Sharing after upgrade to 4.3 for my IPAD

    Hi, I just upgrade my IPAD to 4.3 and ITunes to 10.2. But I can't use the Home Sharing Application. It shows "Home Sharing could not be activated because an error occurred (-3259)". Anyone knows about the detail on this error? Thanks! Ed

  • Adobe Illustrator CC 2014 quit unexpectedly.

    Just updated to the latest Adobe Illustrator CC, today, 10/6/14 through Creative Cloud. I am using a MacBook Pro 2011, and OS 10.8.5. After updating several Adobe apps, and attempting to launch Illustrator, I received the message, "Adobe Illustrator

  • Default Value for Order Type based on Company Code  in ME21N

    Hi,      Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code  XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled ho

  • Tracking Shipments from China and Honk Kong

    Hi all, There are several websites posted on older discussions related to how to track orders from China or Hong Kong. I have compiled a list for everyone's convenience and some instructions. Some websites are specific in checking only tracking numbe

  • I did something stupid - I put a file in the wrong place and can't trash it

    the Gondwanaland file can go and should go but wont go!!!! it was the in trash and I thought i was putting it into documents but it landed here and wont move - it is on the left hand side of the finder under favourites and then all my files, air drop