Passing data into SRM

Hi
We have a scenario where we are using the SRM business package in EP 6.0 and we have a requirement to pre-polupate a basic data field ( PO Type ) for the basic data screen in the Shop iView.
We want to send this data from the Portal , possibly using a webdynpro application.Has anyone done something like this before ? Any ideas ?
Regards,
Muinul

Action Engine <- must read nugget
If you don't understand shift registers...
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How to attach pdf data into SRM ?

    we have a report which sends out a smartform purchaseorder as a pdf to a vendor by email.
    Now the requirement is to connect the sent pdf into srm in order to be visible for checking the billing.
    it is easy to attach an external file into srm but now I already have alle the data available in sap after sending the pdf as attachment in the mail.
    is it also possible to directly transfer this data directly into srm with for instance BAPI_DOCUMENT_CREATE ??
    or is another step in between necessary ?
    this is the coding for sending the email
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
           EXPORTING
                format_src      = 'OTF'
                format_dst      = 'PDF'
                devtype         = 'MAIL'
    *           FUNCPARA        =
           CHANGING
                transfer_bin    = xtransfer_bin
                content_txt     = t_cont_txt
                content_bin     = t_cont_bin
                objhead         = objhead_att
                len             = tabsize
           EXCEPTIONS
                err_conv_failed = 1.
      DESCRIBE TABLE t_cont_bin LINES tablines.
      MOVE i_attach_head TO t_objhead.
      APPEND t_objhead.
    * Objectpack opbouwen voor attachment
      t_objpack-transf_bin = 'X'.
      t_objpack-head_start = 1.
      t_objpack-head_num = 1.
      t_objpack-body_start = 1.
      t_objpack-body_num = tablines.
      t_objpack-obj_name = i_attach_name.
      t_objpack-obj_descr = i_attach_descr.
      t_objpack-doc_type = 'PDF'.
      t_objpack-doc_size = tablines * 255.
      APPEND t_objpack.
    * Ontvangerlijst opbouwen
      LOOP AT t_receiver.
        MOVE-CORRESPONDING t_receiver TO trcv.
        MOVE 'U' TO trcv-rec_type.    " Extern mailadres
        APPEND trcv.
      ENDLOOP.
      DESCRIBE TABLE trcv LINES h_lines.
      IF h_lines = 0.
        RAISE no_receiver.
        EXIT.
      ENDIF.
    * Zender
      IF i_sender IS INITIAL.
        so_sender = sy-uname.
        so_sendertype = 'B'.
      ELSE.
        so_sender = i_sender.
        so_sendertype = 'INT'.
      ENDIF.
    * Mail verzenden
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
              document_data              = s_docdata
              put_in_outbox              = 'X'
              sender_address             = so_sender
              sender_address_type        = so_sendertype
              commit_work                = i_commit_work
    *       IMPORTING
    *         SENT_TO_ALL                =
    *         NEW_OBJECT_ID              =
    *         SENDER_ID                  =
           TABLES
              packing_list             = t_objpack
              object_header            = t_objhead " Mailheader
    *          CONTENTS_BIN             = T_OBJBIN  " Binaire data (attach)
              contents_txt             = t_doctxt  " ASCII-data
              contents_hex             = t_cont_bin " Hex-data
    *         OBJECT_PARA              =
    *         OBJECT_PARB              =
              receivers                = trcv
           EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              OTHERS                     = 8.
      IF sy-subrc NE 0.
        RAISE mail_not_sent.
      ENDIF.
    I have also found this thread but also no answer there to this as it seems simple requirement ??
    PDF Creation + connection to DMS
    kind regards
    Arthur de Smidt
    Edited by: A. de Smidt on May 17, 2011 2:43 PM

    ok solved it myself by using cl_gui_frontend_services=>gui_download with
    BAPI_DOCUMENT_CREATE2

  • Tools to upload data into SRM 7.0 with webdynpro for ABAP

    Hi,
    Webdynpro for abap is used in SRM70.
    I need to load data in SRM70 (product category...).
    ECATT is not working with web dynpro for abap.
    What other tools can i use to load data in SRM70 ? LSMW ?
    I would like to avoid to create a Z program to load data into SRM70...
    Thanks,
    Kind regards,
    Yann

    Hello Yann.
    welcome . we read your wonderful threads and they are useful to coomunity forever.
    I am not aware much.
    Product category is a permanent data right . i think we may not frequently change the data right.
    Does your business want very  frequent update on product category?
    I believe if we make frequent changes/modify  of data we may use LSMW .
    i think your zprogram is a best method to upload the product category.
    As you aware we can not change the product category as per standard.For eg. If i create a local product category /hierarchy .Even i can not rename them.
    category/hierarchy creation are one time activity in SRM.
    please correct me.
    regards
    Muthu

  • Dynamically passing data into a running while loop from a DAQ assist. in an ouside while loop

    Hello,  I'm currently a student working on a senior project and I'm trying to do a state machine that will turn off and turn on a compressor depending on time and coprocessor failure. 
    In the run state, wich is #1 on the case structure box I placed the DAQ assist.  Which takes in data from an accelerometer.  If the accelerometer's value is above the limit four times it will end the loop or if the time runs out it will end the loop. 
    The problem I am having is that i need to run four compressors.   I was thinking about having four case structures all within the outside loop, but I can only have the DAQ assist in one location.  This means that I now have to move the DAQ assist out of the run loop or run all four compressors in the one case structure.  If i remove the DAQ assist.  I can only get it take in data once when the loop starts and never again.  I understand why, but is there a way to dynamically pass data froma  DAQ assist.  into a running loop? 
    Also on a side note, i can't find a tutorial on how to really create a state machine using Enums.  Does any one know where to find this. 
    I have attached my curent program.
    Thank you for your help,
    Ryan
    Attachments:
    TEST STAND STATE MACHINE 2-28-07.vi ‏288 KB

    in labview choose file->new... then pick standard state machine and there are instructions.
    you can create a custom control and either use an enum, text ring or menu ring.  Edit the values and then save the control and drop into your vi and you can wire this to your case structure
    - James
    Using LV 2012 on Windows 7 64 bit

  • Passing data into a variable

    Hi, 
    All I want to do is pass numerical data into a variable, and then access it later. 
    Specifically, I use the Read Vector Space Position VI to find the X and Y positions of my motors. When I press a button, I want the X and Y position at that moment to be saved, so that I can access this information later.
    I would like to do this in a subVI.
    I have read tutorials on functional global variables, but so far they have been quite confusing. Specifically I do not know how to place/use uninitialized shift registers. 
    If someone could create a simple example code, that would be extremely helpful. I am using Labview 2011.
    Thanks

    Action Engine <- must read nugget
    If you don't understand shift registers...
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to pass date into a sp?

    Hi,
    Could anybody know how to pass a parameter of type date into a
    sp? Below are something I tried:
    1.
    create or replace package empTest AS
         PRAGMA SERIALLY_REUSABLE;
         TYPE curType IS REF CURSOR;
         function Details (
              hd date)
              RETURN curType;
    END;
    CREATE OR REPLACE PACKAGE BODY empTest AS
         PRAGMA SERIALLY_REUSABLE;
    function Details (
              hd date)
              RETURN curType IS
              sum_cv curType;
         err_num NUMBER;
         err_msg     VARCHAR2(200);
         sql_statement VARCHAR2(3000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE(hd);
         sql_statement :=' SELECT * from emp where hiredate <
    to_date(''hd'', ''Dd-Mon-YY'') ';
    DBMS_OUTPUT.PUT_LINE(sql_statement );
         OPEN sum_cv FOR sql_statement ;
         IF NOT sum_cv%ISOPEN THEN
              OPEN sum_cv FOR sql_statement;
         END IF;
         RETURN sum_cv;
    END Details ;
    END;
    RUN      EXEC      :CV := empTest.Details('10-DEC-01');
    ORA-01858: a non-numeric character was found where a numeric was
    expected
    2. sql_statement :=' SELECT * from emp where hiredate <
    to_date(hd) ';
    Run in the same way:
    ORA-00904: invalid column name
    3. sql_statement :=' SELECT * from emp where hiredate < to_date
    (''hd'') ';
    Run in the same way:
    ORA-01858: a non-numeric character was found where a numeric was
    expected
    Thanks

    Use the call syntax ...
    empTest.Details(to_date('10-DEC-01','DD-MON-RR'));
    .. or better yet ...
    empTest.Details(to_date('10-DEC-2001','DD-MON-YYYY'));
    As you are passing a date you do not need to use the to_date function in the cursor SQL statement.

  • Passing Data into Subreport

    Hello,
    I am using Crystal 10. I am wondering if it is possible to pass data from a report into a subreport for calculations.
    Thank you.

    Hi Sabian,
    You can pull sub report information and use in main report, while getting the data from sub report to main please take care of the following :
    --Your sub report should be placed above your calculations in main report. ie. after processing of your sub report only you get data into your main report.
    --While writing formulas in sub report or in main report you will have to use Whileprintingrecords; to get get data into your shared variables. Eg:
    Whileprintingrecords;
    shared numbervar x;
    x:=x+fieldvalue;
    --When you create a formula in sub report it should be plced on your sub report, use the same variable name while creating a formula in main report.
    Make sure that the shared variable which you are calling in the main report should be in the below section of the sub report. If you want to pass the sub report to the main report in the same section then insert section below the sub report
    Hope this helps
    Regards,
    Shweta

  • Right Tool to upload Contract data into SRM 5.0 system ?

    Hi,
        Could you tell me, the right tool to upload Contract data from SAP 4.5 into SRM 5.0 system using transaction code BBP_CTR_MAIN. ?
    What would be the problem, if i go with LSMW?
    Thanks in Advance,
    Bobby

    Hi Friends,
        Could any one suggest me which tool (BDC/ LSMW/ BAPI) is suited to upload Contract data from SAP 4.5 into SRM 5.0 using transaction code BBP_CTR_MAIN.I am confusing with Arshad's reply on this.
    Thanks in advance,
    Bobby

  • Passing data into event

    Simple Question: I have text controls that I wish to take values from when a button is pressed. Using Events, how do I get values and store them...

    Are the values needed in any other portion of the program other than when the button is pressed? If not, you could place the controls within the event structure so that their values are only read when the button controlling the event structure is read. Note, though, that if the values are passed from the event structure to other portions of the program you need to determine the best approach for passing data when the button is not pressed (perhaps passing through a value from the last event).
    In the event that the controls are needed in other parts of the program separate from the event structure you can use local variables to read the current value of the controls.
    I hope this helps.
    John

  • Getting error message when passing data into table: Primary Key

    Getting an error in a process that is feeding the invoice creation in SAP, violation of PRIMARY KEY constraint 'INV1_Primary', cannot insert duplicate key in object 'INV1'. I assume this is due to duplicate key values being passed into the table INV1, however I get this error even when I am passing unique record combinations of the key fields docentry and linenum. This is on 2005A SP01.
    Thanks

    Hi Peter,
    Could you provide a code sample of the routine that is causing the error please?
    It sounds like a data corruption issue (though it could possibly be a bug in the DI API). I recommend you speak to SAP support. There is a utility that can validate the document numbering but you'll need to speak to SAP support before you run this as it can have other negative effects, depending on the state of your data. They may ask for a copy of your database to test.
    Kind Regards,
    Owen

  • Upload PO data into SRM system from flat file

    Hi all,
    I need to create conversion program to upload Open Purchase order data from flat file to System.
    I am trying to create po using bapi BAPI_POEC_CREATE. but getting error .
    should any one give the details of parameter need to  pass the bapi .
    Thanks in advance
    Sharad

    Sharad,
    Not the very best piece of code, but should be helpful.
    REPORT  zkb_po_create.
    DATA: ls_po_header   TYPE bapi_po_header_c.
    DATA: ls_e_po_header TYPE bapi_po_header_d.
    DATA: ls_po_items    TYPE bapi_po_item_c.
    DATA: ls_po_accass   TYPE bapi_acc_c.
    DATA: ls_po_partner  TYPE bapi_bup_c.
    DATA: ls_po_orgdata  TYPE bapi_org_c.
    DATA: ls_return      TYPE bapiret2.
    DATA: lt_po_items   TYPE TABLE OF bapi_po_item_c.
    DATA: lt_po_accass  TYPE TABLE OF bapi_acc_c.
    DATA: lt_po_partner TYPE TABLE OF bapi_bup_c.
    DATA: lt_po_orgdata TYPE TABLE OF bapi_org_c.
    DATA: lt_return     TYPE TABLE OF bapiret2.
    * Header Details
    ls_po_header-businessprocess = 1.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = ls_po_header-businessprocess
      IMPORTING
        output = ls_po_header-businessprocess.
    ls_po_header-process_type = 'EC'.
    ls_po_header-doc_date = sy-datum.
    ls_po_header-description = 'Test for BAPI_POEC_CREATE'.
    ls_po_header-logsys_fi = 'Backend'.
    ls_po_header-co_code = '1000'.
    ls_po_header-currency = 'GBP'.
    * Item Details
    ls_po_items-item_guid    = 2.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = ls_po_items-item_guid
      IMPORTING
        output = ls_po_items-item_guid.
    ls_po_items-parent        = ls_po_header-businessprocess.
    ls_po_items-product_guid  = '4678E74FFFC380AD000000000A8E035B'.
    ls_po_items-product_id    = '400030'.
    ls_po_items-product_type  = '01'.
    ls_po_items-category_guid = '4627B461073F40FC000000000A8E035B'.
    ls_po_items-category_id   = '1.04.0500'.
    ls_po_items-quantity      = 10.
    ls_po_items-deliv_date   = sy-datum + 10.
    ls_po_items-price = '25'.
    APPEND ls_po_items TO lt_po_items.
    * Account Assignment
    ls_po_accass-guid = 3.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = ls_po_accass-guid
      IMPORTING
        output = ls_po_accass-guid.
    ls_po_accass-parent_guid = ls_po_items-item_guid.
    ls_po_accass-distr_perc  = 100.
    ls_po_accass-g_l_acct    = '<gl acc>'.
    ls_po_accass-cost_ctr    = '<cost centre>'.
    ls_po_accass-co_area     = '<Ctrl area>'.
    APPEND ls_po_accass TO lt_po_accass.
    * Partner Functions
    ls_po_partner-partner_fct  = '00000019'.
    ls_po_partner-partner      = 'Vendor'.
    ls_po_partner-parent_guid  = ls_po_items-item_guid.
    APPEND ls_po_partner TO lt_po_partner.
    ls_po_partner-partner_fct  = '00000016'.
    ls_po_partner-partner      = 'Requester'.
    ls_po_partner-parent_guid  = ls_po_items-item_guid.
    APPEND ls_po_partner TO lt_po_partner.
    ls_po_partner-partner_fct  = '00000020'.
    ls_po_partner-partner      = 'Receipient'.
    ls_po_partner-parent_guid  = ls_po_items-item_guid.
    APPEND ls_po_partner TO lt_po_partner.
    ls_po_partner-partner_fct  = '00000075'.
    ls_po_partner-partner      = 'Location'.
    ls_po_partner-parent_guid  = ls_po_items-item_guid.
    APPEND ls_po_partner TO lt_po_partner.
    ls_po_orgdata-proc_org_ot = 'O'.
    ls_po_orgdata-proc_org_id = 'Pur Org'.
    ls_po_orgdata-proc_group_ot = 'O'.
    ls_po_orgdata-proc_group_id = 'Pur Group'.
    ls_po_orgdata-parent_guid = ls_po_items-item_guid.
    APPEND ls_po_orgdata TO lt_po_orgdata.
    CALL FUNCTION 'BAPI_POEC_CREATE'
      EXPORTING
        i_po_header  = ls_po_header
      IMPORTING
        e_po_header  = ls_e_po_header
      TABLES
        i_po_items   = lt_po_items
        i_po_accass  = lt_po_accass
        i_po_partner = lt_po_partner
        i_po_orgdata = lt_po_orgdata
        return       = lt_return.
    READ TABLE lt_return INTO ls_return WITH KEY type = 'E'.
    IF sy-subrc NE 0.
      COMMIT WORK AND WAIT.
      WRITE:/ ls_e_po_header-doc_number, ': created successfully'.
    ELSE.
      WRITE:/ 'The below errors occurs during PO creation.'.
      LOOP AT lt_return INTO ls_return.
        WRITE:/ ls_return-message.
      ENDLOOP.
    ENDIF.
    Regards, Kathirvel

  • Passing data into BOX of a script

    Hi ,
    I have designed one script and in that i have created a BOX .
    In print the BOX is displaying . I want to pass some data ( some variable )into that BOX . How can i do that .
    Regards
    Sarmistha

    Hi,
    You can achive it by giving dynamically in SE71 screen.
    eg:
    ADDRESS
    /: BOX FRAME '10' TW
    /: ADDRESS
    /: TITLE &ITAB-ANRED&
    /: NAME &ITAB-NAME1&
    /: STREET &ITAB-STRAS&
    /: POBOX &ITAB-PFACH&
    /: CITY &ITAB-ORT01&
    /: POSTCODE &ITAB-PSTLZ&
    /: COUNTRY &ITAB-LAND1&
    /: REGION &ITAB-REGIO&
    /: FROMCOUNTRY &ITAB-LAND1&
    /: ENDADDRESS
    FOOTER
    /* footer
    /: INCLUDE ZS_TEXT OBJECT TEXT ID ST LANGUAGE EN
    /: BOX FRAME '10' TW
    /: DEFINE &V_NAME1& = 'PRINT PROGRAM'
    /: DEFINE &V_NAME2& = ' '
    /: PERFORM SUB_NAME IN PROGRAM ZS_SCRIPT04
    /: USING &V_NAME1&
    /: CHANGING &V_NAME2&
    /: ENDPERFORM
    P2 &V_NAME2&
    THIS IS <C1>&ITAB-KUNNR&</> INFORMATION
    GRAPH1
    /: BITMAP 'ENJOY' OBJECT GRAPHICS ID BMAP TYPE BCOL
    MAIN
    /* THIS IS CUSTOMER INFORMATION
    /: BOX FRAME '10' TW
    /: TOP
    ,,SALES DOCUMENT,,CREATION DATE,,DOCUMENT TYPE,,NETVALUE RATE
    /: ENDTOP
    Element ITEM DATA
    /: BOX XPOS '16.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
    /: BOX XPOS '30.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
    /: BOX XPOS '44.0' CH WIDTH '0' CH HEIGHT '50.0' LN FRAME '10' TW
    ,,&ITAB-VBELN&,,&ITAB-ERDAT&,,&ITAB-AUART&,,&ITAB-NETWR&
    Thanks and regards,
    Sarada

  • HFM to pass data into Essbase

    Hi
    One of my clients requirment is to pass the data from HFM into Essbase after doing teh journal entries. Is EIS the only way or is there a better way of synchronizing HFM and Essbase together. Also, if EIS is included with teh license deal with Essbase and HFM

    HFM has the internal feature to eliminate at a common parent point, so that sales data remains at lower levels.
    If you use pre Sys9 HFM and Essbase, without any ELT tools, how can you replicate HFM elimination feature inside essbase using HFM base data?
    Does a calc shell exist to traverse ragged hierarchies to do the same elimination in essbase?

  • Pass Data Into Second View Controller

    *My Setup:*
    I have a tab-bar program; I'm currently focusing on one tab, which has a nav controller
    The root controller works as expected. In one of the table view selection methods (didSelectAccessoryButtonAtIndex, or something similar), I initialize one of my classes, which is a subclass of UIViewController with an alloc and custom init. Then I use the pushViewController to push an instance of that class onto the view stack.
    *My Issue:*
    I can't figure out how to pass the data from my first level controller to the second. I'm using a custom init method, which is an instance method because I have to pass an instance of a view controller to the pushViewController method. The data isn't getting to the second level controller, as verified by some NSLogs.
    *Pseudo code:*
    FirstViewController.m:
    -(void)accessoryButtonPressedAtSomeIndex {
    SecondViewController *svc = [[SecondViewController alloc] initWithString:@"Some string"];
    pushViewController: svc
    SecondViewController.m:
    @synthesize string;
    -(id)initWithString:(NSString *)someString {
    self.string = someString;
    NSLog (@"string = %@", someString);
    return self;
    The NSLog returns NULL.
    Obviously some of the code isn't valid, but I don't remember the exact methods. I can post the real code if necessary, but there are a lot of "dependencies" between files. Everything else (pertaining to this problem, although there are some other bugs in my app that I'd appreciate help on too) works. Any suggestions?

    Hello musicwind95
    Two suggestions :
    1) Didn't you forget to do
    if (self = [super init] )
    return self;
    in an init method ?
    Otherwise there is nothing to handle your string
    2) Put a breakpoint and trace ..

  • How do I pass data into a sub vi?

    Hi, I'm trying to pass an integer value into a sub vi that displays this value on a tank indicator. I've connected the tank indicator in the sub vi to one of the terminals but in the calling vi it seems to see the terminal as an output not an input. I can't find any way of selecting whether the terminal is an input or an output. How do I change the terminal to an input?
    I'm using LabView7.0 Express on a Mac.
    Hope you can help.
    Dave G.

    In the attached VI, the user enters a start run value, and that value iterates when the attached device, a Lab Jack, detects the leading edge of a 5 V square wave. There's also an elapsed time function. On its own, the VI executes as intended, but when implemented as a sub VI, indicators wired to the appropriate nodes on the icon in a while loop do not update with execution (i.e. elapsed time, run, and start program numeric indicators don't continually update.) However, when I look at the front panel of the sub VI, the indicator values are continually updated. I've read the help documents about refnum, references, and property nodes; how do I implement these tools to display continually updated values generated by the sub VI in the front panel of a VI?
    Attachments:
    GPIC Simulation 5.zip ‏40 KB

Maybe you are looking for

  • Can't figure out how to turn the Sharing control back on in iTunes

    Recently, I have begun using Limewire to download music. A few days ago a message came up on my computer that said something like "The Sharing Control on your iTunes playlist has been turned off".I can't figure out how to turn it back on, and I have

  • Material for a single project spread across different locations

    Dear Friends my client is executinig trun key projects. One single project may be spread across different geographical locations. Say Project name is "PRJ001". PRJ001 will be executed in Bombay, Hyderabad, Chennai. There are 2 scenarios for procuring

  • Problem Photoshop CC

    J'ai installé Photoshop CC sur mon macbook pro qui est sous Lion et quand je veux ouvrir Photoshop ce message s'affiche "impossible d'initialiser photoshop en raison d'une erreur du programme" je cherche sur des forums depuis des heures sans aucuns s

  • My 5th generation nano got some sweat in it and now it won't come on.

    my 5th generation nano got some sweat in it and now it won't come on.  Won't reset or anything and has been charged up. what can i do?

  • I need some help on my Student class

    Here's the program for class and tester Class to implement Student public class Student      //Instnace fields to store first, last name, and number of credits earned      private String fName;      private String lName;      private int cEarned;