Problem in Calling URL for Line Item of Perticular Purchase Requisition.

Hi Experts,
   I am calling a external window from the web dynpro which is working fine. I am trying to open transaction ME53 in the browser and i am successful in that. But now when i open that transaction there were two requirements:
*1) It should open the purchase requisition directly bypassing the initial screen {which is completed while posting this query}*
*2) and it should open the purchase requisition according to the specific line item. eg. for PR 1234569 Line Item 0010 should only be visible.
Please help me out with this.
Thanks in advance.
Regards Saurabh Kerkar
Edited by: saurabh s kerkar on Dec 20, 2010 12:45 PM

Currently the URL is as follows:
lv_url = 'http://p10dev.ril.com:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=ME53%20EBAN-BANFN='.
  concatenate  lv_url lv_banfn into lv_url.
  concatenate  lv_url '&~OKCODE=/00' into lv_url.
this is opening transaction ME 53 skipping the initial screen with all the line item.
i want to use it for specific line item how to do it?
Edited by: saurabh s kerkar on Dec 21, 2010 8:23 AM

Similar Messages

  • Line Item 00000 in Purchase Requisition

    Hi All,
    Have you encountered creating PR using MD03 and the resulting line item # is 00000 and not something 00010?
    This has been our problem when we are upgrading to ECC 6.0. With 4.6 the line item # is 00010.
    Is this a case of simple configuration in SAP?
    Please help,
    Sid

    Hi Manohar,
    Thanks for the replay. I follow the tree menu you gave in the spro. The doc type's "Item Number Interval" is set at 10. Any further suggestions?

  • How to add a new line item to a Purchase Requisition number

    Hello All,
    Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
    Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
    Useful pointers would be appreciated...!!
    Thanks & Regards,
    Tarun Gambhir

    @Gautham,
    Thanks for the quick reply.
    I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
    Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
    Regards,
    Tarun Gambhir

  • Adding new line item to the Purchase Requisition

    Hi Guys,
    I have created the PR using the BAPI_PR_CREATE. Now I want to add the new line item to already created PR. I tried with BAPI_PR_CHANGE and BAPI_REQUISITION_CHANGE but nothing worked for me.
    Can anyone help me in this.
    Thanks in advance
    Edited by: jayakrishna.k on Feb 16, 2011 12:07 PM

    Hi,
    Please try MEMASSRQ or change by ME52N
    Regards,
    Manish Jain

  • Problem in bdc for table control for line items

    Hi experts,
    I am runnig a bdc for ME52.
    i am just entering PR number, in the second screen i have got all the line items. I need to select these line item 10 and double click or hit enter, it takes me to screen 3, there im just checking a checkbox and saving.
    Again i need to select the line item 20 and double click or hit enter. again the same process.
    Again repeat for all the line items.
    But my problem is it is updating everytime for only line item  10. for line item 20 and others it say "no chnge in the data".
    I am pasting my code here. please check and revert me back .plz.
    DATA: w_output LIKE LINE OF i_output.
      REFRESH I_ITAB[].
      SELECT * FROM EBAN
               INTO TABLE i_itab
               WHERE banfn in s_banfn AND
                     bsart in s_bsart AND
                     bstyp in s_bstyp AND
                     matnr in s_matnr AND
                     werks in s_werks AND
                     lfdat in s_lfdat AND
                     pstyp in s_pstyp AND
                     knttp in s_knttp AND
                     estkz in s_estkz AND
                     loekz eq ' '.
      IF sy-subrc = 0.
        CLEAR: w_itab,
                 i_poitab[].
        SORT i_itab by banfn.
        LOOP AT i_itab INTO w_itab where menge GT eban-bsmng.
          IF p_close = 'X' AND p_rep = 'X'.
            IF w_itab-ebakz = 'X'.
              w_itab-ebakz = ' '.
              APPEND w_itab to i_poitab.
            ENDIF.
          ELSEIF p_open = 'X' AND p_rep = 'X'.
            IF w_itab-ebakz = ' '.
              w_itab-ebakz = 'X'.
              APPEND w_itab to i_poitab.
            ENDIF.
          ELSEIF p_close = 'X' AND p_repw = 'X'.
            IF w_itab-ebakz = ' '.
              APPEND w_itab to i_poitab.
            ENDIF.
          ELSEIF p_open = 'X' AND p_repw = 'X'.
            IF w_itab-ebakz = 'X'.
              APPEND w_itab to i_poitab.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
      LOOP AT i_poitab into w_output.
        APPEND w_output to i_output.
       PERFORM CALL_BDC.
      endloop.
    IF p_rep = 'X'.
    PERFORM CALL_BDC.
    ENDIF.
    ENDFORM.                    " GET_DATA
    *&      Form  CALL_BDC
          text
    -->  p1        text
    <--  p2        text
    FORM CALL_BDC.
    DATA: seltab(5) TYPE N,
          seltab1(2) TYPE N,
          tempvar(30) TYPE N,
          cnt TYPE N.
    LOOP AT i_output.
    clear: seltab,
           seltab1.
    seltab = i_output-bnfpo.
    seltab1 = seltab+2(2).
    perform bdc_dynpro      using 'SAPMM06B' '0105'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'EBAN-BANFN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'EBAN-BANFN'
                                  i_output-banfn.
    perform bdc_dynpro      using 'SAPMM06B' '0106'.
    clear tempvar.
    *cnt = 1.
    concatenate 'EBAN-BNFPO(' seltab1 ')' into tempvar.
    perform bdc_field       using 'BDC_CURSOR'
                                 'EBAN-BNFPO(seltab1)'.
                                    tempvar.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=DETA'.
    perform bdc_field       using 'RM06B-BNFPO'
                                  i_output-bnfpo.
    perform bdc_field       using 'RM06B-TCSELFLAG(seltab1)'
                                 'X'.
    perform bdc_dynpro      using 'SAPMM06B' '0102'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'EBAN-EBAKZ'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'EBAN-EBAKZ'
                                  i_output-ebakz.
    CALL TRANSACTION 'ME52' USING bdc_data MODE 'A'
                                   MESSAGES INTO i_bdcmsg.
        COMMIT WORK AND WAIT.
    ENDLOOP.
    ENDFORM.                    " CALL_BDC
    *&      Form  bdc_dynpro
          text
         -->P_0686   text
         -->P_0687   text
    FORM bdc_dynpro USING    program dynpro.
    CLEAR bdc_data.
      bdc_data-program  = program.
      bdc_data-dynpro   = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
      CLEAR bdc_data.
    ENDFORM.   
    thanks,
    N

    Looks like table control logic is wrong -- do compare with below program...
    only table contril area
    REPORT ZPadmam
    NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
    i1 TYPE i,
    lifnr LIKE rf02k-lifnr,
    bukrs LIKE rf02k-bukrs,
    ekorg LIKE rf02k-ekorg,
    ktokk LIKE rf02k-ktokk,
    anred LIKE lfa1-anred,
    name1 LIKE lfa1-name1,
    sortl LIKE lfa1-sortl,
    land1 LIKE lfa1-land1,
    akont LIKE lfb1-akont,
    fdgrv LIKE lfb1-fdgrv,
    waers LIKE lfm1-waers,
    END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
    j1 TYPE i,
    banks LIKE lfbk-banks,
    bankl LIKE lfbk-bankl,
    bankn LIKE lfbk-bankn,
    END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\first1.txt'
    filetype = 'DAT'
    TABLES
    data_tab = itab.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = 'C:\second.txt'
    filetype = 'DAT'
    TABLES
    data_tab = jtab.
    LOOP AT itab.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-KTOKK'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RF02K-LIFNR'
    itab-lifnr.
    PERFORM bdc_field USING 'RF02K-BUKRS'
    itab-bukrs.
    PERFORM bdc_field USING 'RF02K-EKORG'
    itab-ekorg.
    PERFORM bdc_field USING 'RF02K-KTOKK'
    itab-ktokk.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-LAND1'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFA1-ANRED'
    itab-anred.
    PERFORM bdc_field USING 'LFA1-NAME1'
    itab-name1.
    PERFORM bdc_field USING 'LFA1-SORTL'
    itab-sortl.
    PERFORM bdc_field USING 'LFA1-LAND1'
    itab-land1.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFA1-KUNNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    cnt = 0.
    LOOP AT jtab WHERE j1 = itab-i1.
    cnt = cnt + 1.
    CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-banks.
    CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankl.
    CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
    PERFORM bdc_field USING fdt jtab-bankn.
    IF cnt = 5.
    cnt = 0.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=P+'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKN(02)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    ENDIF.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFBK-BANKS(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-FDGRV'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFB1-AKONT'
    itab-akont.
    PERFORM bdc_field USING 'LFB1-FDGRV'
    itab-fdgrv.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB1-ZTERM'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFB5-MAHNA'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'LFM1-WAERS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'LFM1-WAERS'
    itab-waers.
    PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RF02K-LIFNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=YES'.
    PERFORM bdc_transaction USING 'XK01'.
    ENDLOOP.
    PERFORM close_group.
    Thanks
    Seshu

  • PROBLEM IN QP01 BDC ( 19TH LINE ITEM IS NOT TAKING)

    DEAR ALL,
    I am working on a bdc of QP01 for inspection plan, my bdc is working prperly , problem is that  in sceen there r 18 lines for line  items , but i have 30 line items. after 18 line items no data is picking. and a message is coming no input data is there for screen no 0150. i tried a lot  and unable to solve . if anybody can solve my problem . i send u the part of my code.
    LOOP AT ITAB.
    CHECK ITAB-MATNR = ITAB1-MATNR.
    if flag = 1.
      ** QUALITATIVE **
    if itab-QUALITAT = 'X' AND itab-QUANTITAT = ''.
    IF I ge 18.
    *CONCATENATE  'RQPAS-SEL_FLG(' I ')' INTO SCR.
    *perform bdc_field       using SCR
    X = '17'..
    CONCATENATE  'RQPAS-SEL_FLG(' X ')' INTO SCR.
    perform bdc_field       using SCR
    X1 = '18'..
    CONCATENATE  'RQPAS-SEL_FLG(' X ')' INTO SCR.
    perform bdc_field       using SCR
    X2 = '340'.
    CONCATENATE  'RQPAS-SEL_FLG(' X1 ')' INTO SCR.
    perform bdc_field       using SCR
        PERFORM BDC_DYNPRO      USING 'SAPLQPAA' '0150'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'RQPAS-QUALITAT(02)'.
       PERFORM BDC_FIELD       USING 'RQPAS-ENTRY_ACT'
                                     '1'.
                                       i.
       PERFORM BDC_FIELD       USING 'RQPAS-AB_MKNR'
                                ITAB-MERKNR         .
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                      '/00'.
    endif.
    perform bdc_dynpro      using 'SAPLQPAA' '0150'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'PLMKB-VERWMERKM(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RQPAS-ENTRY_ACT'
                                  '1'.
    k = i - 1.
    CONCATENATE  'RQPAS-SEL_FLG(' k ')' INTO SCR.
    perform bdc_field       using SCR
    CONCATENATE  'RQPAS-SEL_FLG(' i ')' INTO SCR.
    perform bdc_field       using SCR
                                  'X'.
    ***perform bdc_field       using 'BDC_OKCODE'
                                 '/00'.
    ***'=QMLM'.
    CONCATENATE  'PLMKB-VERWMERKM(' I ')' INTO SCR.
    perform bdc_field       using   scr      "'PLMKB-VERWMERKM(01)'
                                 'DS-TH-01'.
    itab-VERWMERKM.
    CONCATENATE  'PLMKB-KURZTEXT(' I ')' INTO SCR.
    perform bdc_field       using   scr
    itab-KURZTEXT.
    regards
    banaja

    but i want to try it out by modifying the existing code.
    please provide me guidelines to solve this problem.

  • Change Rules for Line item

    Hi,
    I have customized the change rules for Line item.
    Still the system not allowing to make changes to that particular field? Can any one tell me, whats the reason for the same.
    Following Field is made as changeable for the line item.
    BSEG-VBUND             Trading partner.
    The above field is available in More data Tab or additional data tab while making entry or display of document.
    Thanks,
    Lalatendu

    Hi,
    That i know, but trading partner was not entered in the GL Master data. Infact some one wrongly entered Trading partner in Customer master and during bank posting system automatically picked Trading partner.
    When thye r trying to clear open items for that GL account , because of that assignment system is not allowing to clear those line item.
    If i can remove that trading partner from document, my problem will be solved.
    Can any one guide me..or if u need more info please let me know.
    Thanks,
    Lalatendu

  • Adding a characteristics to AR Drill down report for line items

    I have raised an OSS note on this, but they deem this to be consulting.
    I have an AR drill down report for line items
    It calls the structure RFRRD20.
    I need to add a value into the characteristics so I can use it in the drill down report.
    I have appended the structure, added a value in TKAF for the field, and it still does not show.
    Has anybody done something similar?
    I am sure this is easy, but only when you know how, so if you know how to do it please can you let me know.
    thanks
    Mark

    Hi Mark
        I am also in the same situation where i need to add two characteristics (invoice date, due date) to the AR drill down reports. I added them to the structure and TKAF table as you did, but still could not get them to the drill down reports (FDI5 or FI1).
       From your posts, i see that SAP's response was that it is not possible to add characteristics to AR drilldown reports? Did they mention any reasons or OSS notes? How did you handle your requirement, were you able to work around?
       Your suggestions would be highly appreciated.
    Thanks
    Vamsi

  • Error Handling in table control for line item.

    Hi,
    Please how to do error handling in table control for line item in bdc,i have used format_message for header but i don't no fill decamps internal tabled and  how to do background processing in call transaction.
    Thanks

    Background processing is not possible using call transaction method.
    You can create an executable program which can have CALL TRANSACTION BDC code. And this can be run in background.
    What do you exactly mean by Error handling for Items in table control. Can you give some more details.

  • OBBH Substitutuions for line items.

    HI,
    We are trying to assign cost centers for GL accounts using FI susbstitution rules ( OBBH ) in exit routine ZGGBS000 ( RGGBS000 ).
    The BSEG and BKPF ( line item substitution ) values are populated when the routine is triggered however we also need VBAP values too, they remain empty. Is there a way i could get the VBAP values filled too.
    Thanks.

    Ok. Inside the exit we have BSEG and BKPF values populated and looping depending on the line items.
    For Ex : for line item 1 when the control comes in the exit, VBAP values are not populted whereas the BSEG values are populated.
    I needed VBAP values to cross reference the GL account. On certain material divison i needed to populate cost center.
    My problem was addressed using a user-exit.

  • Subtotal for line item in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi Abapers,
    Is it possible to have subtotal functionality for line item for
    REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    when i select particular line item and press subtotal button
    system displaying information mesage
    "Subtotals cannot be calculated using item
    characteristics"
    Even when  i executed  standard hie program same message displaying for line item.
    please provide any sample code for subtotal for line item .
    regards,
    Hari priya

    just copy the program and execute
    *& Report  Z_HIERSEQ_REP2                                              *
    *& author : ramesh.k                                                                    *
    *& title  : hierseq list in alv format                                                                    *
    REPORT  z_hierseq_rep2 MESSAGE-ID zrae.
    TYPE-POOLS : slis.
    *structure declarations
    *structure for likp
    TYPES : BEGIN OF ty_likp,
             vbeln TYPE vbeln_vl,
             vkorg TYPE vkorg,
             END OF ty_likp.
    *structure for lips
    TYPES : BEGIN OF ty_lips,
             vbeln TYPE vbeln_vl,
             posnr TYPE posnr_vl,
             matnr TYPE matnr,
             matkl TYPE matkl,
             ntgew TYPE ntgew_15,
             END OF ty_lips.
    *internal table declarations
    DATA : t_likp TYPE STANDARD TABLE OF ty_likp INITIAL SIZE 0,
           t_lips TYPE STANDARD TABLE OF ty_lips INITIAL SIZE 0.
    DATA : t_fieldcat TYPE slis_t_fieldcat_alv,
           t_sortinfo TYPE slis_t_sortinfo_alv,
           i_events TYPE slis_t_event.
    *workareas
    DATA : w_likp TYPE ty_likp,
           w_lips TYPE ty_lips,
           w_fieldcat TYPE slis_fieldcat_alv,
           w_keyinfo TYPE slis_keyinfo_alv,
           w_sortinfo TYPE slis_sortinfo_alv,
           W_event TYPE slis_alv_event ,
           sub_text type slis_subtot_text.
    *global declarations.
    DATA : g_vbeln like likp-vbeln.
    *selection-screen declarations
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    SELECT-OPTIONS : s_vbeln FOR g_vbeln.
    SELECTION-SCREEN END OF BLOCK blk1.
    AT SELECTION-SCREEN.
      SELECT SINGLE
             vbeln
             FROM likp
             INTO (w_likp-vbeln)
             WHERE vbeln IN s_vbeln.
      IF sy-subrc NE 0.
        MESSAGE i001 WITH 'vbeln not found'.
      ENDIF.
    START-OF-SELECTION.
    get_data_likp
      PERFORM sub_getdata_likp.
    get_data_lips
      PERFORM sub_getdata_lips.
    fieldcatlog_build
      PERFORM build_fieldcatlog.
    *SORTINFO FOR SUBTOTALS
      PERFORM get_sortinfo.
    *KEYINFORMATION
      PERFORM get_keyinfo.
    *LIST DISPLAY
      PERFORM alv_list_display.
    *&      Form  sub_getdata_likp
        extracting the data from likp.
    -->  p1        text
    <--  p2        text
    FORM sub_getdata_likp .
      SELECT vbeln
             vkorg
             FROM likp
             INTO TABLE t_likp
             WHERE vbeln IN s_vbeln.
    ENDFORM.                    " sub_getdata_likp
    *&      Form  sub_getdata_lips
       extracting data from lips.
    -->  p1        text
    <--  p2        text
    FORM sub_getdata_lips .
      SELECT vbeln
             posnr
             matnr
             matkl
             ntgew
             FROM lips
             INTO TABLE t_lips
             FOR ALL ENTRIES IN t_likp
             WHERE vbeln = t_likp-vbeln.
    ENDFORM.                    " sub_getdata_lips
    *&      Form  build_fieldcatlog
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcatlog .
    *FIELDCATLOG FOR HEADER TABLE
      PERFORM build_fieldcatlog1 USING :
                     '1' 'VBELN' 'DELIVERY NO' 'T_LIKP' ' ' ' ' ' ',
                     '2' 'VKORG' 'GROUP'       'T_LIKP' ' ' ' ' ' ',
    *FIELDCATLOAG FOR ITEM TABLE
                     '1' 'POSNR' 'ITEM NO' 'T_LIPS' ' ' ' ' ' ',
                     '2' 'MATNR' 'MAT NO'  'T_LIPS' ' ' ' ' ' ',
                     '3' 'MATKL' 'GROUP'   'T_LIPS' ' ' ' ' ' ',
                     '4' 'NTGEW' 'QUAN'    'T_LIPS' 'X' 'X' 'X'.
    ENDFORM.                    " build_fieldcatlog
    *&      Form  build_fieldcatlog1
          text
         -->P_0185   text
         -->P_0186   text
         -->P_0187   text
         -->P_0188   text
    FORM build_fieldcatlog1  USING
                                  pcol     TYPE char2
                                  pfldname TYPE char8
                                  pseltext TYPE char20
                                  ptabname TYPE char10
                                  psum     TYPE char10
                                  PQUAN    TYPE CHAR15
                                  PSUBTOTAL TYPE CHAR40.
      w_fieldcat-col_pos = pcol.
      w_fieldcat-fieldname = pfldname.
      w_fieldcat-seltext_m = pseltext.
      w_fieldcat-tabname = ptabname.
      w_fieldcat-do_sum = psum.
      W_FIELDCAT-qfieldname = PQUAN.
    W_FIELDCAT-subtotals_text = PSUBTOTAL.
      APPEND w_fieldcat TO t_fieldcat.
    ENDFORM.                    " build_fieldcatlog1
    *&      Form  GET_KEYINFO
          text
    -->  p1        text
    <--  p2        text
    FORM get_keyinfo .
      w_keyinfo-header01 = 'VBELN'.
      w_keyinfo-item01   = 'VBELN'.
    ENDFORM.                    " GET_KEYINFO
    *&      Form  ALV_LIST_DISPLAY
          text
    FORM alv_list_display .
    DATA : S_REPID TYPE SY-REPID.
           S_REPID = SY-REPID.
    DATA W_LAYOUT TYPE SLIS_LAYOUT_ALV.
    W_LAYOUT-totals_text = 'G.TOTAL'.
    W_LAYOUT-subtotals_text = 'SUBTOTAL_TEXT'.
    *FORM subtotal_text CHANGING p_total TYPE any
                               p_subtot_text TYPE slis_subtot_text.
    p_subtot_text-criteria = 'VBELN'.
    *p_subtot_text-max_len = 40.
    *p_subtot_text-display_text_for_subtotal
    *= 'SUBTOTAL'.
    **ENDIF.
    *ENDFORM.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK              = ' '
         i_callback_program             = S_REPID
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
       IS_LAYOUT                      = W_LAYOUT
         it_fieldcat                    = t_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
         it_sort                        = t_sortinfo
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
       I_SAVE                         = 'X'
      IS_VARIANT                     =
       IT_EVENTS                      = i_eventS
      IT_EVENT_EXIT                  =
          i_tabname_header               = 'T_LIKP'
          i_tabname_item                 = 'T_LIPS'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
          is_keyinfo                     = w_keyinfo
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab_header                = t_likp
          t_outtab_item                  = t_lips
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " ALV_LIST_DISPLAY
    *&      Form  GET_SORTINFO
          text
    -->  p1        text
    <--  p2        text
    FORM get_sortinfo .
      w_sortinfo-fieldname = 'VBELN'.
      w_sortinfo-tabname   = 'T_LIKP'.
    W_SORTINFO-group     = TEXT-001.
      w_sortinfo-subtot    = 'X'.
      APPEND w_sortinfo  TO t_sortinfo.
    ENDFORM.                    " GET_SORTINFO

  • Changing the default view for Line Items in an Auction.

    Hello All,
    We have a version 5 client who is asking for us to change the default view for line items in an auction.
    Currently, if you have an auction setup, and you go to the Line Items tab, the default view is the "Basic View". The client would like to change the Default from "basic view" to "price view".
    Is there a way to change this default in the system? Can this be configured using query groups? Any information would be helpful.

    Hi wood cloud,
    This is not possible, bcz there is no VLV for that drop down and we cant set it  to the price view.
    Thanks,
    Ankur Goyal

  • How to create an inspection lot for each line item of the Purchase order?

    Hi,
    How to create an inspection lot for each line item of the Purchase order ?
    In detail if possible.

    Hi
       please check this
    [thread|Create Inspection Lot;

  • No control line for line item - error while posting bd to accounting

    Hi all,
    Billing document showing err "no control line for line item" while posting to accounting doc.Sales document is complete no in completion logs.
    Previous errr: g/l missing for line item" in order incompletion after maintaining company code for customer, then refresh the g/l missing for line item is no more logs and showing the error "no control line for line item" while posting bd to accts.
    Please help
    Regards
    anush

    Hello Anush,
    if the company data of the payer was not created when the sales order has been created, then the system could not create the correct records in table VBREVK. Once the company data has been maintained the VBREVK records could be corrected by re-saving the sales, but only if no billing document exists.
    In your case you already created the billing document.
    Please try these step:
    1. reverse billing document
    2. run VA02 add a blank char to PO number, save
    3. create new billing document
    Best regards,
    Ivano.

  • GR of Delivery completed item not possible for line item of PO/SA ?

    Hi,
    Am unable to Receive Goods in MIGO an Error - "GR of delivery completed item not possible for line item of PO/SA"?
    Regards
    Mohammed Khaja Pasha
    +919550917395.

    Hi Mohammed Khaja Pasha ;
    Delivery Completed checkbox provides a lot of fonctionality like an additional delivery is not expected, but is possible. If you prevent posting of migo , you can benefit from system messages M7 163 and 254.
    You want to ensure that the delivery is made before the planned delivery date : Set message 254.
    You want to ensure last possible delivery date : Set message 163.
    However ;
    The open PO quantity of the PO item equals zero.
    The PO item is no longer relevant for materials planning.
    The PO item is ignored when letters urging delivery of overdue goods are generated.
    The PO item can be deleted and archived.
    You can specify whether the Delivery Completed checkbox is to be selected automatically.
    Regards.
    M.Ozgur Unal

Maybe you are looking for

  • In which table, we can find SCM customer code.

    Friends, I am writing an user exit for VA01/VA02/VA3/VA32. I am getting the customer number from VBAK-KUNNR  when I execute any of the above transactions. According to functional sepecification, we can find SCM code in the data base table ADRC. (we c

  • Import wizard and linked server

    Hi guys, I got a problem that I'm trying to resolve but it's gonna to be hard... Sql 2008 R2, I got two linked server from Oracle ( I think that the linked server are two filegroup). I need to move some table ( millions of rows) from Oracle, so the l

  • Maximum contacts in palm desktop 6

    I'm trying to import my contacts into Palm desktop...  I have about 650 contacts - what's the max I can import?  Can I split up the file and import smaller chunks at once? Post relates to: Treo 650 (Unlocked GSM)

  • Find out the SQLs which are using a full table scan

    Hello all , how can i to find out the queries which are using a full table scan ? Any idea ?

  • Best text file to import for Motion Scroll?

    Hi, I will be getting a copy of the credits to add to the end of a play. What format should I ask for the text to be in? What works best in Motion 4? (RTF, PDF, etc) Thanks.