How to create relationship to call PO13 in ABAP program.

Hi,
Could anybody help me how to create relationship (like PO13) in abap program. Do we have any Function modules or any other way?
Regards,
Ram.

Hi,
You can use function module RH_INSERT_INFTY. There are plenty of threads of the forum on how to use it.
Donnie

Similar Messages

  • How to create a routine call in FM (FI Module)

    How to create a routine call in FM (FI Module)

    Anu,
    I've attached a really short example that does something like what you're talking about.  It just compares the user's username and password a pre-determined username and password and then "logs the user in" based on that comparison.  Like Greycat said, you probably want to store this username and password info in some sort of file on the PDA that's in an encrypted format for both security and flexibility of your application.
    I hope this helps,
    Justin D.
    Applications Engineer
    National Instruments
    Attachments:
    LoginVI.vi ‏17 KB

  • How to create a service call for more then one item

    Hi All,
            How to create a service call for more then one item. i.e. the service call should be logged for more then one item

    As you noticed this is not possible by design.
    Maybe you could have a dummy item for that purpose and register the real items to be handled in a UDT...
    HTH

  • How to create internal table storing instances of ABAP class

    Hi experts, any one knows how to create internal table storing instances of ABAP class or alternative to implement such function?

    Hi
    Please see below example from ABAPDOCU, this might help you.
    Internal Table cnt_tab is used to store class objects.
    Regards,
    Vishal
    REPORT demo_objects_references.
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        ADD 1 TO count.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA: cnt_1 TYPE REF TO counter,
          cnt_2 TYPE REF TO counter,
          cnt_3 TYPE REF TO counter,
          cnt_tab TYPE TABLE OF REF TO counter.
    DATA number TYPE i.
    START-OF-SELECTION.
      CREATE OBJECT: cnt_1,
                     cnt_2.
      MOVE cnt_2 TO cnt_3.
      CLEAR cnt_2.
      cnt_3 = cnt_1.
      CLEAR cnt_3.
      APPEND cnt_1 TO cnt_tab.
      CREATE OBJECT: cnt_2,
                     cnt_3.
      APPEND: cnt_2 TO cnt_tab,
              cnt_3 TO cnt_tab.
      CALL METHOD cnt_1->set EXPORTING set_value = 1.
      CALL METHOD cnt_2->set EXPORTING set_value = 10.
      CALL METHOD cnt_3->set EXPORTING set_value = 100.
      DO 3 TIMES.
        CALL METHOD: cnt_1->increment,
                     cnt_2->increment,
                     cnt_3->increment.
      ENDDO.
      LOOP AT cnt_tab INTO cnt_1.
        CALL METHOD cnt_1->get IMPORTING get_value = number.
        WRITE / number.
      ENDLOOP.

  • How do we call smartforms in abap program or web services

    how do we call smartforms in abap program or web services
    How many types of smartforms are there?
    points will be rewarded

    Hi
    See this sample program
    Using the fun module smartform is called from the program
    Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    <b>call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'</b>
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function <b>FM_NAME</b>
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 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.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • How to create generic search help in wd abap

    Hi experts,
          How to create generic search help in wd abap.
    Regards...
    Arun.

    Hi Arun,
    Following links have step by step procedures for creating search helps and other related topics.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • How  to  crate a spool number for the abap program

    hi
    how  to  create a spool number for the abap program

    Hi,
    Check this thread
    how to create a spool requset for 'z program'.
    Regards,
    Satish

  • CALLING BAPI in ABAP program

    Hi,
    I want to call BAPI_MATERIAL_AVAILABILITY in ABAP program. Please give me some sample code how i can do this??? Please help

    hi,
    REPORT  YATP.
    DATA: LV_TABIX  LIKE SY-TABIX,
            LT_WMDVSX LIKE BAPIWMDVS OCCURS 0 WITH HEADER LINE,
            LT_WMDVEX LIKE BAPIWMDVE OCCURS 0 WITH HEADER LINE.
    data ET_PROCUREMENT_ITEM LIKE BBPPOGN.
      LV_TABIX = SY-TABIX.
      CLEAR: LT_WMDVSX, LT_WMDVEX.
      REFRESH: LT_WMDVSX, LT_WMDVEX.
    Fill communication table
      LT_WMDVSX-REQ_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
      LT_WMDVSX-REQ_QTY  = ET_PROCUREMENT_ITEM-QUANTITY.
      APPEND LT_WMDVSX.
    Availability check with check rule '03'
      CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
           EXPORTING
                PLANT      = 'ALB1'
                MATERIAL   = '100000223'
                UNIT       = 'EA'
                CHECK_RULE = '03'
           TABLES
                WMDVSX     = LT_WMDVSX
                WMDVEX     = LT_WMDVEX
           EXCEPTIONS
                OTHERS     = 1.
      IF SY-SUBRC EQ 0.
        READ TABLE LT_WMDVEX WITH KEY
                             COM_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
        IF SY-SUBRC EQ 0.
          ET_PROCUREMENT_ITEM-AVAIL_QTY = LT_WMDVEX-COM_QTY.
        ENDIF.
      ENDIF.
      write :/ et_procurement_item-avail_qty.
      Loop at lt_wmdvex.
      write : / lt_wmdvex-COM_QTY,
              lt_wmdvex-BDCNT,
               lt_wmdvex-REQ_QTY.
    endloop.
    This is my program  but no value written  for WMDVEX.

  • Code to call url in abap program

    code to call url in abap program using cl_http requests and save the outcome to a location  in a file

    See the below program
    REPORT zbrowser .
    TABLES : sscrfields.
    INCLUDE .
    CONSTANTS: htmlcntl_eventid_on_navigate TYPE i VALUE 1.
    CONSTANTS: htmlcntl_eventid_navigate_com TYPE i VALUE 2.
    DATA : h_html_ctrl TYPE cntl_handle,
    repid TYPE sy-repid,
    dynnr TYPE sy-dynnr,
    cmd TYPE sy-ucomm,
    flag,disp.
    DATA : it_exclude LIKE TABLE OF rsexfcode WITH HEADER LINE.
    SELECTION-SCREEN : FUNCTION KEY 1,
    FUNCTION KEY 2,
    FUNCTION KEY 3,
    FUNCTION KEY 4,
    FUNCTION KEY 5.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 2
    SELECTION-SCREEN COMMENT 45(50) comment1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(28) comment2 FOR FIELD url.
    SELECTION-SCREEN POSITION 31.
    PARAMETERS : url(1064) LOWER CASE .
    SELECTION-SCREEN PUSHBUTTON 79(4) open USER-COMMAND open.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
    comment1 = 'ABAP INTERNET EXPLORER'.
    comment2 = 'Enter URL/Filename To Open :'.
    open = icon_transfer .
    sscrfields-functxt_05 = icon_sap.
    sscrfields-functxt_04 = icon_booking_stop.
    sscrfields-functxt_03 = icon_refresh.
    sscrfields-functxt_02 = icon_arrow_right.
    sscrfields-functxt_01 = icon_arrow_left.
    repid = sy-repid.
    dynnr = '1000'.
    it_exclude-fcode = 'ONLI'.
    APPEND it_exclude.
    it_exclude-fcode = 'INFO'.
    APPEND it_exclude.
    *Changing GUI status
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
    p_status = sy-pfkey
    p_program = repid
    TABLES
    p_exclude = it_exclude.
    CALL FUNCTION 'CONTROL_INIT' .
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_CREATE'
    EXPORTING
    owner_repid = repid
    link_repid = repid
    dynnr = dynnr
    handle = h_html_ctrl
    EXCEPTIONS
    control_install_error = 1
    create_error = 2
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 3
    OTHERS = 3
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'HTMLCNTL_INIT'
    EXPORTING
    h_control = h_html_ctrl
    left = 1
    top = 2
    width = 143
    height = 37
    register_event_on_navigate = 'X'
    cb_form_navigate_complete = 'ON_CONTROL_EVENT'
    EXCEPTIONS
    cntl_system_error = 1
    cntl_error = 2
    dp_create_error = 3
    dp_install_error = 4
    dp_error = 5
    create_browser_error = 6
    init_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN.
    cmd = sscrfields-ucomm.
    CASE cmd.
    WHEN 'OPEN'.
    PERFORM load_html_page.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN 'FC01'. "BACK
    CALL FUNCTION 'HTMLCNTL_GO_BACK'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 4
    PERFORM get_current_url.
    WHEN 'FC02'. "FORWARD
    CALL FUNCTION 'HTMLCNTL_GO_FORWARD'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC03'. "REFRESH
    CALL FUNCTION 'HTMLCNTL_DO_REFRESH'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    WHEN 'FC04'. "STOP
    CALL FUNCTION 'HTMLCNTL_STOP'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    WHEN 'FC05'. "GO TO HOME
    CALL FUNCTION 'HTMLCNTL_GO_HOME'
    EXPORTING
    h_control = h_html_ctrl.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    PERFORM get_current_url.
    CALL FUNCTION 'CONTROL_FLUSH'.
    WHEN OTHERS.
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 5
    CALL FUNCTION 'CONTROL_DISPATCH'
    EXPORTING
    fcode = cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    ENDCASE.
    CLEAR cmd.
    CALL FUNCTION 'CONTROL_FLUSH'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR url.
    PERFORM get_file_name.
    PERFORM load_html_page.
    *& Form get_page_name
    Get Page Name
    FORM get_file_name.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    DEF_FILENAME = ' '
    def_path = 'C: '
    mask = ',.,..'
    mode = 'o'
    title = 'Browse to Open'
    IMPORTING
    filename = url
    RC =
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    ENDFORM. " get_page_name
    *& Form load_html_page
    TO load the file (URL)
    General Browser to View
    Files/Pictures & WebPages
    © 2005 SAP AG 6
    FORM load_html_page.
    CALL FUNCTION 'HTMLCNTL_SHOW_URL'
    EXPORTING
    h_control = h_html_ctrl
    url = url.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    flag = 'X'.
    ENDFORM. " load_html_page
    *& Form get_current_url
    Get Current URL
    FORM get_current_url.
    CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL'
    EXPORTING
    h_control = h_html_ctrl
    IMPORTING
    url = url.
    ENDFORM. " get_current_url
    Callback form for the event 'NavigateComplete'
    callback on_control_event.
    CALL FUNCTION 'CONTROL_GET_EVENT_PARAM'
    EXPORTING
    h_control = h_html_ctrl
    param_id = 0
    CHANGING
    return = url.
    PERFORM get_current_url.
    endcallback.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Is it possible to call website from ABAP Program?

    Hi Experts,
           Is it possible to call website from ABAP Program?
    It is very Urgent Help me.
    Regards,
    Ashok.

    Hi,
    Check the following program:
    REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    Regards,
    Bhaskar

  • How to find the start condition of a ABAP program?

    Hello Gurus!,
    Could any one please explain how to find the start condition of a ABAP program?
    like its a event based or time based?and also how to find that event and time..
    Thanks in Advance...
    Dinakar

    Hi Dinkar,
    Go to Job Schedule, put Job Step parameter as your program and see scheduled Job.
    In Schedule Job double click to see start condition. and steps to see details and variant.
    Hope it helps.
    Thanks
    CK

  • Calling Actions in ABAP Programming.

    Hi,
    Is it possible to call ACTIONS in ABAP programming?
    Regards,

    Hi Pushpa,
    The receiver type is the workflow you want to start, when the event occurs, of corresponding object type.
    I Never had the need to develop at workflow level, but search a little in the foruns and you'll find a lot of info about this. I also advice you to open new threads when asking new questions: It's more appropriate and will bring you more answers
    Kind regards,
    Garcia

  • How To Create a URL Call in WebDynpro

    Hy All,
    i want to call a URL (WWW) directly from a WebDynpro-Application. But i found no stuff how to do this.
    URL myUrl = new URL("http://www.google.de");
    wdThis.wdInterfaceViewController().wdFirePlugStartAppExit(myUrl);
    I know how to read parameters of the URL, but i have Problems to create a URL-Call.
    Who can help ?
    Do I need a urlConnection ?
    Thanks for help.
    By Jürgen

    Hello Abdul, hello Sam,
    thanks for help !
    I have tested both and it is ok !.
    If i want to use the "external Link" in my Window, i have know thte Problem.
    I use the LinkToURL-Control with the Propertie "_SELF" and allways a new Browser Window come up! Where is my fault ?
    I have tested it with the following properties "_SELF, _PARENT, _TOP".
    Regards
    Jürgen

  • How to create inbound JIT Call Manually?

    Hi All,
    Currently I am doing SAP JIT configuration. I have created the JIT Customer.
    Now I need to get a JIT call to determine the schedule lines in the scheduling agreements. In real scenario, JIT call comes through Idoc from the customer side.
    But I need to create JIT Call manually to do the configuration. So , How to create it? Is it Possible?
    Thanks,
    Anbazhagan E

    Use transaction JIT1
    Put in the Sold to customer number and the Ship to Partner description, just like in the first section of JITV, and put a unique value for this JIT Customer is the "Ext. JIT Call No." field.
    When you hit enter you will get the Call Components grid or both the Component Groups and the Call Components Grids (depending on what Maintenance Mode you selected on JITV).
    Let's assume your Mtce Mode = 3 - Discrete Material / Summ JC. Therefore you only get the Call Components grid on transaction JIT1.
    You need to fill in certain fields at a minimum, more depending on the JIT Call Configuration.
    Bare minimum, you need:
    1) Customer material or Material (if you fill in one, when the program finds the matching LZJ SA, it wil default the other)
    2) External Status (ex. ECRE or CR or whatever External status you have defined and linked to the CREA action in configuration)
    3) Planned Ship date or Planned Requirement date
    4) Quantity
    If when entering the Customer material or Material, the Sales Document and Sales Item is not populated, that means you do not have a matching LZJ type SD scheduling agreement in the system. Or the data you are entering on JIT1 does not exactly match.
    The SA must be there before you can do JIT1.
    The JITV entry must be there before you can set up the SA.
    Hope this helps at a basic level.
    You may need to enter additional data at the header of the Inbound JIT Call, or at the Call Components level, depending on a particular scenario or to correctly find the SA.
    If you have EDI that has come in and you want to create a similar JIT Call. Use the [Propose JIT Call button]
    On the 1st screen, enter the Sold to, Partner Desc and new JIT Call number.
    When you get to the 2nd screen, click the Propose JIT Call button, and enter the JIT Call you want to copy from. You just need to enter the External Status and new Planned Date. The materials and quantities and other fields get copied from the source JIT Call.

Maybe you are looking for

  • Corrupt iPod?

    I got a 2nd gen black iPod nano as a gift, and the first time I plugged it into the computer, it worked perfectly fine. I was able to sync it and it was compatible with iTunes. Then, I plugged it in a second time, I got the error message "iTunes has

  • Any known issues after upgrading OS from Vista to Windows 7?

    We have an app using the Crystal .NET from VS 2003. Crystal Reports prints in Vista, but client upgraded to Windows 7 recently and gets an error when trying to print.  I have obtained the following infro from the event log: Log Name: Application Sour

  • SAP Query-for  Reporting   how to create and use it

    Hi SAP Gurus, i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon. als

  • End of presentation

    At the end of my Captivate presentation, I would like the user to click on a button to exit the presentation and return to their previous application or desktop.  How is this done?  I don't see an action for 'on exit' that will work.  Please advise,

  • Can not charge, restore, and be recognized by my comp.

    I was playing a game when my battery went out and I pluged it in recharge but it showed me a white screen, I tried to restore to the factory settings but it couldnt finish. Now being removed the OS, my computer doesnt recognize the device, and I can