Activate function "Duplicate Line" in a UDO - SAP 8.8

He everybody,
I've created a basic UDO in SAP 8.8... How can I activate "Duplicate Line" function in this UDO, like exist in SAP B1 default forms??
It is possible??
Rgrds,
Wagner

Hi Wagner,
you have to develop this function on your own. You can use the generalservices for accessing udo data. see the sdk help center for more information.
greetings
matthias

Similar Messages

  • Activate funcions "Duplicate Line" in UDO-Table

    He everybody,
    I've created a basic UDO... How can I activate "Duplicate Line" function in this UDO, like exist in SAP B1 default forms??
    It is possible??
    Rgrds,
    Wagner

    Hi Wagner,
    Your question belongs to SDK forum. Post it there.
    Thanks,
    Gordon

  • Function module to send mail from SAP

    Can any one please tell the Function module to send mail from SAP. The scenario is like this,I have a file in local system that i have to send to a particular mail address like [email protected] through a report program.

    Hi shafiq,
    1. There is some trick involved
    in the binary files.
    2. I have made a program (and it works fantastic)
    ONLY 6 LINES FOR EMAILING
    BELIEVE ME
    ITS A FANTASTIC PROGRAM.
    IT WILL WORK LIKE OUTLOOK EXPRESS !
    3. The user is provided with
    a) file name
    b) email address to send mail
    and it sends ANY FILE (.xls,.pdf .xyz..)
    Instantaneously !
    4. Make two things first :
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = reclist
    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 <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    regards,
    amit m.

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • Duplicate line item in Statement of account

    Dear All,
    Why there is duplicate line item in Statement of account?

    Hi Ajit,
    In your ECC system follow below path and set Availability check rule to "B" (full delivery).
    SPRO --> SD --> Basic Functions --> Availability Check and TOR --> Availability Check --> Availability Check with ATP Logic or Against Planning --> Define Default Settings
    Select your sales area and set Availability check rule to "B" (full delivery).
    This should fulfill your requirement.
    Rgds
    Sourabh

  • Mass change to activate the old line item display

    hi
    I want to know that is there any program like RFSEPA01 to activate the old line items display. There is no mass change option in this program.
    I am searching for a program which can change on mass level as i am working on many company codes.
    Thanks

    Hi,
    Standard SAP delivers this program only, If you want multiple options for company codes, ask your ABAPer to copy this program so that he can create a Z program.
    Rgds
    Murali. N

  • How to activate Function Set

    Hi Guys,
    I want to activate Function set SAP Retail (EA-Retail) in my SAP IDES 2005 SR2 (700) box.
    Is it done through EWF5.
    Can someone give me correct procedure.
    Thanks in advance!

    You can do it in Client 000 with user having sap_all . Pleas logoff all other users .
    Thanks
    Prince Jose

  • Function "Follow-up in purchasing" in SAP

    Dear all,
    I am wondering whether you have heard of a Function "Follow-up in purchasing" in SAP?
    I am not quite understand of this processs, can anyone explain to me?
    and how does it setup in SPRO for this function to take place?
    thanks.
    tuffy

    Hi
    I am not sure about it and I never come to across of such terminology in sap
    in domain we can follow up po
    same may be in sap
    like when you create po and send to vendor ,you can do setting for confirmation of po from vendor
    means vendor got your po and he is agree with you term and condition
    we can set reminder in sap  about delivery and you can remind vendor about you delivery i think thats also follow of purchasing
    once good receipt then payement of vendor after miro
    Regards
    Kailas

  • Reg : The functionality of WMMBID02 Basic type in SAP.

    Hi All,
    Can anyone give me the functionality of WMMBID02 Basic type in SAP. Mean, not the structure of the Idocs i am talking about. But to which Module of SAP is it related to and what kind of inventory data it carries? what the significance of this data. which table get updated when this idocs gets posted successfully.
    And also that, From table /GLB/RGTTPLANHED, we can get the trip status. So wat exactly this trip status indicates?... can anyone explain this in detail?

    The message typer for this is WMMBXY and its used for Goods movement between storage location. This would internally calls MB01 transaction and related to MM module.

  • New error message :duplicate line item

    Hi,
    We have to add a new error message so that when we try to add a duplicate line item in our qty contract
    1.     we should not be allowed
    2.     we should get a error message u201Cduplicate line item not allowedu2019
    How to achieve this
    Thanks
    Arun

    Search this forum for "USEREXIT_SAVE_DOCUMENT" and "USEREXIT_SAVE_PREPARE".

  • Item does not match schedule line (program error) in sap

    Dear Expert.
    Greetings!
    We are currently facing with this error (V1 427 item does not match schedule line (program error) in sap), when we open the sales order(VA02/03).
    The error  is occurring due  inconsistency on the database tables, some Item is in  table VBEP, but it is missing from table VBAP.  This is what is causing the error message.
    I checked various related notes - 442831 , 401463 , 389687  etc .  These are quite old notes and I am in release ECC 6.0 .
    Report SD_CONSISTENT_CHECK_EXT and SD_CONSISTENT_CHECK are already available.
    Bapi BAPI_SD_SALES is also active.
    Please let me know if anybody has any idea on the same.
    regards
    Praveen

    Hi,
       Refer the KBA:  1464620 - Error V1427: Item does not match schedule line   which explains the reason and the solution for the issue.
    Regards,
    AKPT

  • Delete duplicate lines

    hi, i have duplicate lines, how to keep one line and delete other line, please see the data.
    GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(2002, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    -87.913022, 41.977339, -87.912718, 41.977415))
    SDO_GEOMETRY(2002, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    -87.913022, 41.977339, -87.912718, 41.977415))
    many thanks

    Hi 908275,
    Here's a quick demo:jot_test@11gR2> create table duplicate_demo (
      2     id number primary key,
      3     geometry sdo_geometry);
    Table created.
    jot_test@11gR2>
    jot_test@11gR2> delete from user_sdo_geom_metadata where table_name = 'DUPLICATE_DEMO';
    1 row deleted.
    jot_test@11gR2> insert into user_sdo_geom_metadata (table_name, column_name, diminfo, srid) values
      2  ('DUPLICATE_DEMO','GEOMETRY',sdo_dim_array(sdo_dim_element('x', 600000, 650000, .01), sdo_dim_element('y', 300000, 350000, .01)), 81989);
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> create index duplicate_demo_spind on duplicate_demo(geometry) indextype is mdsys.spatial_index;
    Index created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (1,
      2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (2,
      2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (3,
      2  sdo_geometry(2003, 81989, null, sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600000, 300000, 601000, 300000, 601000, 301000, 600000, 301000,600000, 300000)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (4,
      2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (5,
      2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (6,
      2  sdo_geometry(2003, 81989, null,sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(600200, 300200, 601500, 300200, 601500, 303000, 600200, 303000,600200, 300200)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (7,
      2  sdo_geometry(2003,81989,null, sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(601706,301321, 602554,301321, 601744,302032, 602612,302028, 601790,301429, 601706,301321)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> insert into duplicate_demo (id, geometry) values (8,
      2  sdo_geometry(2003,81989,null, sdo_elem_info_array(1,1003,1),
      3  sdo_ordinate_array(601706,301321, 602554,301321, 601744,302032, 602612,302028, 601790,301429, 601706,301321)));
    1 row created.
    jot_test@11gR2>
    jot_test@11gR2> commit;
    Commit complete.
    jot_test@11gR2>
    jot_test@11gR2> -- Identify which rows duplicate each other
    jot_test@11gR2> select /*+ ORDERED */ b.id, a.id
      2  from duplicate_demo a, duplicate_demo b
      3  where sdo_equal (a.geometry, b.geometry) = 'TRUE'
      4  and a.id != b.id
      5  order by 1,2;
            ID         ID
             1          2
             1          3
             2          1
             2          3
             3          1
             3          2
             4          5
             4          6
             5          4
             5          6
             6          4
             6          5
             7          8
             8          7
    14 rows selected.
    jot_test@11gR2>
    jot_test@11gR2> -- Now delete the duplicates
    jot_test@11gR2> delete from duplicate_demo a where rowid > (
      2     select /*+ ORDERED */ min(rowid)
      3     from duplicate_demo b
      4     where sdo_equal (b.geometry, a.geometry) = 'TRUE');
    5 rows deleted.Regards
    John

  • Do we have any functionality to handle stale cheques in sap

    Dear Guru's,
    I need the functionality to handle stale cheques in sap.  If any configuration is required then plz let me know, it's urgent.
    Thanks in Advance,
    Kishore

    Hi,
    You have to void cheques individually.
    What we are doing is that we have done a Z program calling FCH9 and created a BDC for mass void
    in selection you give the date range so that you can choose a date prior to six months.
    Get the help of an ABAPer
    Assign points if useful
    Sunoj

  • Functionality in long text  -- include -- characters-- SAP Icons

    Can any one please tell me the functionality in long text  -->include >characters>SAP Icons. Is it possible to include any icon in longtext.
    regards
    Ravikumar

    Hi,
    The standard icons should be available. If not, see note [1067936|https://service.sap.com/sap/support/notes/1067936] that explains how they can be made available.
    -Paul

  • THOUGH I DO NOT ACTIVATE THE FIRST LINE "BROWSING AND DOWNLOAD HISTORY", MY DOWNLOADS ARE NEVERTHELESS DELETED. I JUST POSTED THIS QUESTION AND GOT 2 REPLI

    When I do a "CLEAR RECENT HISTORY" and THOUGH I DO NOT ACTIVATE THE FIRST LINE "BROWSING AND DOWNLOAD HISTORY", MY DOWNLOADS ARE NEVERTHELESS DELETED.
    I just posted this question under the "OTHER" category and got 2 replies, neither of which solves this problem!
    IS THERE A SOLUTION? Thanks

    Are you the same poster as Raphaex who posted using Windows 8.1 in this thread and provided a full and detailed set of data accessible using the "More System Details" link: https://support.mozilla.org/questions/1011435 ??
    If not, could you provide a link to the earlier discussion on your situation if there is one? I don't want to repeat what you haven't found helpful, and also, it's critical to know your correct configuration information and not waste everyone's time typing out advice that is totally irrelevant.
    To provide the missing details on your configuration:
    # Use ONE of these methods to open the Firefox Troubleshooting Information page:
    #* Click the "3-bar" menu button [[Image:New Fx Menu]], click on help [[Image:Help-29]] and select ''Troubleshooting Information''.
    #* Type '''about:support''' into the Firefox address bar and press the enter key.
    # In the top left corner of the Troubleshooting Information page that comes up, you should see a button that says "Copy text to clipboard". Click it.
    #Now, come back to this thread, right-click in the reply box and select '''Paste''' from the context menu (or else click inside the reply box and press Command+v) to paste all the information you copied into the forum post.
    Usually, this does not contain personal information, but I suggest you skim down and make sure you do not see your email address in there (XX it out ).

Maybe you are looking for

  • Jabber for Mac 9.2.1 Cannot communicate with the server

    Hi All, I'm using Webex and the Jabber for Mac 9.2.1 client that was automatically pushed.  I see "Cannot communicate with the server" when I attempt to login.  The same credentials work correctly when using the 8.6.5 client version.  I've attached t

  • How to use ksoap?

    Hi all, I developed a server(axis) that distribute web service. To begin I start with a simple programm that send "Hello Word" to my client. I tested it on my browser. And it seems that my web service works fine. Here is the result of my request "htt

  • HT5012 I cannot download the apps as it showing you cannot use the Singapore store u must switch to Indian store. So please help me out in that problem

    I cannot download the apps. It's showing that u cannot use the Singapore software, you must switch to Indian store please help me out on this problem.

  • SM49 on windows 2008

    Dear  Sap Experts I try to  call VBscript with SM49 that sends mail and I get this Error: MIcrosoft VBScript runtime error: error in loading DLL: 'objEmail.Configuration.Field.... The script is: I copy the script from: http://www.paulsadowski.com/WSH

  • Unable to Save Responses As PDF

    We have several users that have access to view responses to our Adobe formcentral forms, lately we are having issues with saving the responses as a PDF.  We are accessing formcentral via IE (we have tried alternative browsers and doesn't seem to matt