Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

cl_gui_abapedit

$
0
0

hello,

 

Can anyone help me to find out how to remplace cl_gui_abapedit used in a code so it can work in sap 4.6 ,cause in 4.6 version the  cl_gui_abapedit don't exist .

 

thanks in advance .


payment run f110

$
0
0

Guys do you know how to generate/completed a payment run.Im using transaction f110.Kindly advise me the step by step procedure..

Thanks..

points will be rewarded if found useful..

EXIT in VA01

$
0
0

Hi experts,

 

I want find an EXIT/BADI/ to change the value list.Please see the pic.

can help me? thank you very much.

Custom copy of standard RAHERK02 report.

$
0
0

It's a pretty dumb problem, but mysterious as hell. I've been asked to made a copy of standard report, and small change in code, to retrieve different depreciation area. I've commented existed code and assigned necessary value.

 

definition of problematic field:

 

PARAMETERS:      BEREICH1  LIKE RBADA-AFABE1                              FOR TABLE ANLB VALUE-REQUEST MEMORY ID AFB.

 

and changed part of code:


 *  IF NOT bukrs-low IS INITIAL.
 *    bereich1 = cl_faa_cfg_services=>get_default_area_from_bukrs( iv_bukrs = bukrs-low ).
 *  ELSE.
 *    bereich1 = '01'.
 *  ENDIF.   bereich1 = '31'.

I suppose that somewhere in the table could be difference between shown and stored data, and that is the reason, why i don't get any data from this report. Could you give some advice about where should i look at?

Issue with Cyrillic in smartform AI_CRM_IM_FULL_DATA_PRINT_FORM when displayed from Solution Manager Portal

$
0
0

Hi there,

 

it seems this is not the right place for this topic, if so - apologize, please advice where to post it.

 

Well, our issue is with Cyrillic in the smartform AI_CRM_IM_FULL_DATA_PRINT_FORM, called when pressing "Print Preview" for an incident from the browser - when accessing Solution Manager. It obviously triggers conversion to PDF before output. Somewhere in between Cyrillic comments were scrambled to "####".

 

Detailed information:

- Solution Manager 710 Patch Level 14 - the system is Unicode.

- smartstyle used in the form is managed with Cyrillic font "COURCYR -  ISO-5: Cyrillic Courier" (for clarity - checked several times, font was changed without positive effect),

- scrambled comments are stored as a text object of type "LOG" at the header of incident. Its Cyrillic content is correctly displayed when accessing it in the Solution Manager via browser and via SAP Gui - tr.code CRM_ORDER for example.

- the issue is browser-independent - checked with IE9 and Chrome.

- Print Preview is called according to the SAP recommendations - when the incident is displayed in a separate window via Menu point -> More -> Print Preview -> Print Message

- all Cyrillic comments are displayed in the PDF in a way: "#### ## #####"

- the incident subject is scrambled in a different way - here is an example "Short Text  @><5=8 2 eADD"

 

I've attached preview to the message.

 

Can anyone suggest what/where to tune?

Thanks.

 

Regards,

Ivaylo

Reduce the Width & Height for Data Matrix Barcode

$
0
0

Hi,

 

    I need to Data Matrix Barcode for small label in Smartform, when I assign it in Smartstyles the default size is 40MM & 20MM and i'm not able to change the size.

 

How we can change the size for Barcode.?

 

Thank You

Making the cell as editable after an event

$
0
0

Hi all,

 

I try to makea cell editable according on the value selected from dropdown but she stay disabled.

I use event DATA_CHANGED like below :


METHOD handle_data_changed.

*-----------< Déclaration >----------------*
     DATA:
* Structures
           ls_good_cost TYPE lvc_s_modi
         , ls_cellstyle TYPE lvc_s_styl
* Variables
         .

* Pointeurs
     FIELD-SYMBOLS:
           <ls_data_changed> TYPE lvc_s_modi
         .

*-----------< Début traitement >-----------*

*--- Lecture de la valeur modifiée
     LOOP AT er_data_changed->mt_good_cells ASSIGNING <ls_data_changed>.

       IF <ls_data_changed>-fieldname = 'PEC'.

         CASE <ls_data_changed>-value.
           WHEN 'N'                "Non pertinant
                OR 'E'.               "Exception / Hors périmètre

*--- Ajout du paramètre editable de la cellule
             READ TABLE gt_amo_error INDEX <ls_data_changed>-row_id
                                     ASSIGNING <gs_amo_error>.
             IF sy-subrc = 0.
               ls_cellstyle-fieldname = 'COMMENTAIRE'.
               ls_cellstyle-style     = cl_gui_alv_grid=>mc_style_enabled.
               APPEND ls_cellstyle TO <gs_amo_error>-cellstyles.
               FREE ls_cellstyle.
             ENDIF.

           WHEN OTHERS.
             "Ne rien faire

         ENDCASE.

       ENDIF.

     ENDLOOP.

*-----------< Fin   traitement >-----------*

   ENDMETHOD.


Thanks for your help.

Need to place a PDF format of Adobe Form in a specified path

$
0
0

Hi All Experts,

 

I have a below requirement,

 

I need to get the PDF format of the Adobe Form and place it in a particular location of the system.

 

i can get the PDF format from the exporting parameter /1bcdwb/formoutput  of the adobe form but i cannot place it in the location specified,

 

Kindly help me providing a detailed explanation of the same.

 

Regards,

Satish


fields not displaying in some prints in smartforms

$
0
0

Hi

 

In a smartforms there is variable  &GV_OBJ& which is getting display for some prints while in very very few its blank. there is no condition for this variable.I checked in debugging the value is getting assigned to this variable and its not getting cleared. but not sure why not getting display.

please suggest on this.

 

 

 

Regards

Navdeep

SWPR issue for old workflow

$
0
0

Dear Experts ,

 

I  need to restart an old workflow which had ended up with an error status earlier but when i give the workflow id in SWPR and try to execute its throwing an error message 'Unable to start subflow (ID: 000000168764, node:0000000001) . I also checked the workflow thoroughly for current issue and its working perfect except for the old ones with ERROR Status .

I've attached the screen shot of the Error message also for your reference .

 

Please advice .

 

 

Thanks in advance .

Wilson

Enhancement for language in communication tab in PO

$
0
0

Hello Experts,

Hope all are doing well.

 

We have a requirement to change language in communication tab in PO header while creating(ME21N).

 

Currently it is fetching from Vendor master.

But we need to change the value (to default another language) based on comparison between vendor and company code language.

 

I have implemented the Enhancement spot/BADI: ME_PROCESS_PO_CUST and written a custom code in method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER by calling GET_DATA and SET_DATA methods in IF_PURCHASE_ORDER_MM.

 

But i am unable to find the field which holds the communication language value in header structure MEPOHEADER.

 

Please provide your valuable inputs to achieve implementing the requirement.

 

 

Thanks in Advance.

Sai karthik.

Update VBAP custom field

$
0
0

Hello experts,i added a custom field to the VBAP,named VBAP-ZZCRD,and i put this field in the Tab additional B,the user requrement is as follow:

when i use VA02 to change a sales order ,if this sales order has a bom,header material A and BOM item A1\A2\A3,if i change the BOM header VBAP-ZZCRD,i also need to follow the header VBAP-ZZCRD to update the BOM item VBAP-ZZCRD with the same value automatically.I try to update the XVBAP interal table structure in the userexit_check_vbap\userexit_save_document_prepare\userexit_save_document,but all failed,so please give some help,thanks in advance.

ME51N Bdc upload

$
0
0

Hi to all,

 

I have requirement to develop bdc program for me51n(purchase requisition.). Here i have to upload Header text and item texts,etc. Please anyone share sample code for this.

 

 

Thank you.

Using two AT SELECTION-SCREEN.

$
0
0

Hello,

 

I need to show a help Popup window inside AT SELECTION-SCREEN.

But I have already used AT SELECTION-SCREEN for file uploading and I can't use 2nd AT SELECTION-SCREEN.

Please check the below screen shots.

Is there any way to work this around ?

 

Screenshot_1.jpg

Error :-

Screenshot_2.jpg

 

Thanks & Regards,

Pratik

Read Table Query

$
0
0

Can I write WITHKEY AND INDEX in same read table query?

 

 

 

READ TABLE IT_PA0001 INTO WA_PA0001

       WITH TABLE KEY PERNR = IT_PA0001 INDEX 1.

 

I know we can't.

 

But is there any solution?

 

 

Thanks.


Unable to create PR with header text/note using BAPI_PR_CREATE

$
0
0

Hi all,

 

I have successfully created purchase requisition using BAPI_PR_CREATE. But, the bapi is not creating  header text/note for the PR even when I give inputs for the same.

 

I have given the following inputs.

 

structure name: PRHEADERTEXT

 

PRHEADERTEXT-PREQ_NO =

PRHEADERTEXT-PREQ_ITEM = '0010'

PRHEADERTEXT-TEXT_ID  = 'B01'

PRHEADERTEXT-TEXT_FORM = 'EN'

PRHEADERTEXT-TEXT_LINE = 'New text'

 

How can I create PR with header text/note using BAPI_PR_CREATE.

 

Thanks & Regards,

 

Rajan

 

Edited by: Rajan Usman Basha on Jan 6, 2009 11:29 AM

How to avoid scroll bars in table control(Module pool) ?

$
0
0

I tried by unchecking the vertical and horizontal resizing in table control properties , but it didn't work.

Is It possible to avoid scroll bars in table control ?

We can avoid horizontal scroll bar by defining the no.of columns, but how to avoid vertical scroll bar ?

Please find the attachment for reference which is highlighted vertical scroll bar.

Logic to calculate the arithmetic expression. Input is in string format. please see to the attachment

$
0
0

Hello

 

I am new ABAP, I am trying write the logic to calculate arithmetic expression.

but the input should be in string format, and calculate the complete string.

like SQRT, +,-,*,/

 

Please find the attachment for clear details.

 

Thanks in advance

 

Kishan

BADI/BAPIs/Exits for CJ20N Save event

$
0
0

Hi All,

 

I need to validate network and activity data in CJ20N before saving any project.

 

I have already searched all possible way to get BADI/BAPIs/Exits for this.

 

But nothing is useful, as many of them are not getting called on save event.

 

Can anybody please help me to get useful BADI/BAPI/Exit which is getting called on Save event on CJ20N?

bapi create po system give message no. bm035

$
0
0

Deal all,

  when i use bapi 'BAPI_PO_CREATE1' create po, system give me a error message no. bm035(Measurement unit & has no ISO code). I don't konw how to sorve it.  But when i use T-code ME21N to create po, it create suceeed. Is my code wrong?  This is my code, please anybody give me some advice, Thanks.

FORM generate_free_po .

    DATA: lv_ebeln LIKE ekko-ebeln ,        lv_adrnr LIKE t001w-adrnr.  .

  CLEAR:poheader,poheaderx.  .

    REFRESH:poitem,poitemx,pocondheader,pocondheaderx,      .

  

poschedule,poschedulex,poaddrdelivery,poreturn,pocomponents,pocomponentsx. .

  LOOP AT gt_freepo INTO gs_freepo.  .

        ON CHANGE OF gs_freepo-ebeln.  .

  

            IF poheader IS NOT INITIAL.    .

      

                PERFORM exec_bapi_po USING lv_ebeln ''.  .

      

            ENDIF. .

      

      CLEAR:poheader,poheaderx,lv_ebeln.  .

      

      REFRESH:poreturn,poitem,poitemx,pocondheader,pocondheaderx,poschedule,poschedulex.  .

    

      lv_ebeln = gs_freepo-ebeln.      ""po header      .

      poheader-po_number    = gs_freepo-ebeln .  "po number  .

      poheader-comp_code    = gs_freepo-bukrs.        "company code    .

 

      poheader-doc_type    = gs_freepo-bsart.        ""document type    .

 

      poheader-vendor      = gs_freepo-lifnr.        ""vendor *    .

 

      poheader-currency    = gs_freepo-waers.        "waers    .

 

      poheader-purch_org    = gs_freepo-ekorg.        ""pur_org  .

 

      poheader-pur_group    = gs_freepo-ekgrp.        ""pur_group  .

  

      poheader-creat_date  = sy-datum.    .

 

    poheader-created_by  = sy-uname .  .

  

    poheader-langu        = sy-langu.  .

  

  poheader-doc_date    = sy-datum.    .

 

      poheader-item_intvl  = '00010' .  .

 

      poheader-status      = 'I' .                  "PO FROM BAPI    .

 

    "" po header flag  .

      

        poheaderx-po_number  = 'X' .    .

 

        poheaderx-comp_code  = 'X' .  .

 

        poheaderx-doc_type    = 'X' .  .

 

        poheaderx-vendor      = 'X'.    .

 

      poheaderx-purch_org  = 'X' .  .

 

      poheaderx-pur_group  = 'X' .  .

 

        poheaderx-creat_date  = 'X'.    .

 

        poheaderx-created_by  = 'X'.  .

  

      poheaderx-langu      = 'X' .    .

  

      poheaderx-doc_date    = 'X'.    .

 

      poheaderx-item_intvl  = 'X'.  .

  

      poheaderx-status      = 'X' .    .

    

    poheaderx-vat_cntry  = 'X' . .

 

    ENDON.    .

 

""po item  .

 

    CLEAR:poitem.    .

 

    poitem-po_item    = gs_freepo-ebelp.  "EKPO 采购凭证的项目编号    .

 

    poitem-material    = gs_freepo-matnr .  " MATERIAL    .

 

    poitem-plant      = gs_freepo-werks.  "工厂    .

    poitem-stge_loc    = gs_freepo-lgort . "LOCATION    .

poitem-quantity    = gs_freepo-menge.  "采购订单数量    .

  SELECT SINGLE bstme INTO poitem-po_unit FROM mara WHERE matnr = gs_freepo-matnr..

*    poitem-po_unit    = gs_freepo-meins.  "PO_UNIT  .

  poitem-short_text  = gs_freepo-txz01.  "短文本    .

poitem-item_cat    = gs_freepo-pstyp.  "Item Catagory  .

  poitem-free_item  = 'X'.                              ""免费项目    .

""*---------------------------------------------------------------------  .

 

    poitem-net_price  = gs_freepo-kbetr.  "单价  .

 

    poitem-price_unit  = gs_freepo-kpein.  "单价单位 .

 

    poitem-plan_del    = 0 .  .

 

    poitem-preq_name  = sy-uname. .

 

    poitem-period_ind_expiration_date = sy-datum . .

*    poitem-po_price    = '2'.  .

APPEND poitem.  .

  ""po item flag  .

      CLEAR:poitemx.  .

      poitemx-po_item                  = gs_freepo-ebelp.    .

      poitemx-po_itemx                  = 'X'.    .

      poitemx-material                  = 'X'.  .

      poitemx-plant                      = 'X'.    .

      poitemx-stge_loc                  = 'X'.  .

      poitemx-quantity                  = 'X'.    .

    poitemx-po_unit                    = 'X'.  .

    poitemx-net_price                  = 'X'.    .

    poitemx-price_unit                = 'X'.    .

    poitemx-preq_name                  = 'X'.  .

    poitemx-period_ind_expiration_date = 'X'. .

    poitemx-item_cat                  = 'X'.  .

  poitemx-free_item                  = 'X'.      .

*    poitemx-po_price                  = 'X'.  .

  APPEND poitemx.  .

 

  ""schedule .

 

    CLEAR:poschedule.  .

        poschedule-po_item        =  gs_freepo-ebelp.  .

        poschedule-sched_line      =  gs_freepo-ebelp. .

 

      poschedule-del_datcat_ext  = 'D'.              "交货日期的类别    .

 

      poschedule-delivery_date  =  gs_freepo-eeind.    "EKPO 交货日期    .

 

      poschedule-quantity        =  gs_freepo-menge.    "采购订单数量    .

 

        APPEND poschedule.    .

 

"""schedule flag  .

      CLEAR:poschedulex.  .

 

      poschedulex-po_item        =  gs_freepo-ebelp.  .

 

      poschedulex-sched_line    =  gs_freepo-ebelp.  .

 

    poschedulex-del_datcat_ext = 'X'.      .

 

    poschedulex-delivery_date  = 'X'.  .

 

      poschedulex-quantity      = 'X'.    .

 

      APPEND poschedulex.    .

 

    ""pocondheader    .

        CLEAR:pocondheader.  .

        pocondheader-cond_type    = 'PBXX' .    .

        pocondheader-condition_no  = gs_freepo-ebeln.    .

        pocondheader-itm_number    = gs_freepo-ebelp.    .

      pocondheader-cond_value    = gs_freepo-kbetr.  .

      pocondheader-currency      = gs_freepo-koein.    .

      pocondheader-cond_p_unt    = gs_freepo-kpein.    .

      pocondheader-cond_unit    = gs_freepo-kmein.  .

 

        pocondheader-change_id    = 'U'.    .

 

        pocondheader-cond_st_no    = 1 .  .

 

    SELECT SINGLE umrez umren INTO (pocondheader-numconvert,pocondheader-denominato) FROM marm    WHERE matnr = gs_freepo-matnr AND meinh = gs_freepo-meins.    .

 

APPEND pocondheader .  .

 

  ""pocondheader flag    .

 

        CLEAR:pocondheaderx. .

        pocondheaderx-cond_type    = 'X' .  .

        pocondheaderx-condition_no = gs_freepo-ebeln.    .

        pocondheaderx-itm_number  = gs_freepo-ebelp. .

        pocondheaderx-cond_st_no  = 1 .    .

 

        pocondheaderx-cond_value  = 'X'.    .

        pocondheaderx-currency    = 'X'.    .

 

      pocondheaderx-cond_p_unt  = 'X'.    .

 

      pocondheaderx-cond_unit    = 'X'.    .

 

      pocondheaderx-change_id    = 'X'.  .

        pocondheaderx-numconvert  = 'X'.    .

        pocondheaderx-denominato  = 'X'.    .

        APPEND pocondheaderx .    .

    """address  .

  CLEAR: poaddrdelivery,lv_adrnr .    .

poaddrdelivery-po_item = gs_freepo-ebelp.    .

SELECT SINGLE adrnr INTO lv_adrnr FROM t001w WHERE werks = gs_freepo-werks.    .

poaddrdelivery-addr_no = lv_adrnr .  .

  APPEND poaddrdelivery.  .

ENDLOOP.  .

    IF poheader IS NOT INITIAL.    .

          PERFORM exec_bapi_po  USING lv_ebeln ''.  .

 

    ENDIF. ENDFORM.      .

 

    FORM exec_bapi_po  USING  l_ebeln LIKE ekko-ebeln l_flag TYPE c.  .

          DATA: no_price_from_po LIKE bapiflag-bapiflag.  .

            CALL FUNCTION 'BAPI_PO_CREATE1'      .

 

                EXPORTING      poheader        = poheader      .

  

                                          poheaderx        = poheaderx .

*      no_price_from_po = no_price_from_po    .

            TABLES      return        = poreturn  .

                                  poitem        = poitem  .

                                    poitemx      = poitemx      .

                                    pocondheader  = pocondheader    .

                                    pocondheaderx = pocondheaderx .

                                      poschedulex    = poschedulex  .

                                      poschedule    = poschedule    .

    pocomponents  = pocomponents      .

                pocomponentsx  = pocomponentsx    .

    poaddrdelivery = poaddrdelivery.  .

                  READ TABLE poreturn WITH KEY type = 'E'.  .

                          IF sy-subrc EQ 0.  .

                              CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.      .

              

                          ELSE.    .

        

                    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'        EXPORTING        wait = 'X'.  .

    

  ENDIF. .

    

ENDFORM.                    " EXEC_BAPI_PO

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>