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

Value is updated in debugging screen but not updated during execution

$
0
0

Hi

I have written a report program to upload the data from excel, which has multiple batches into, MIGO transaction.I have to enter the vendor batch  and production date for each Batch.I am able to enter multiple values into Distribute screen i,e. Quantity and Bataches. I am able to see the values updated for Vendor Batch and production date while debugging but it is not showing in screen fields.Please help.Very Urgent.

 

Venky


Supplementary Documentation for data element in ABAP dictionary

$
0
0

Hi,

 

Can anyone briefly explain what is the purpose of supplementary documentation in addition to the documentation button for data element in table fields?

Is this only for standard data elements or also can we have it for custom ones as well?

 

Thank you

Omkar

How to know whether TR moved to qty and prd??

$
0
0

Hi friends,

 

As an abaper how to know whether my TR moved to QTY and PRD.

 

tr.JPG

With reg,

Praneeth.Ch.

URL de SCN para Jive app con IOS 9.3.1.

$
0
0

Hello,

I am trying to install Jive to have the SCN in the mobile and me being impossible because the URL is everywhere ( sap-scn.jive-mobile.com ) to enter it tells me that target a URL normal Jive .

Can somebody help me

Thank you
Luis

Smartforms Loop issue

$
0
0

Hi All,

I am facing problem in smartforms loop, where I am getting text from read text function. IT line getting 12000 line, when I try to print all line items via loop object then it will print only 389 rows. I also increase the TO ROW limitation in fact I tested to make blank TO ROW field of loop. whenever I increase the to row field above 389 then form is not displaying any thing. But user require to print more than 389 rows.

 

Any advice please?

 

regards,

 

Syed Tayab Shah

Error during file read from Application Server -Unicode tab Delimited Text file

$
0
0

Hi we have a requirement to read a file of type Unicode Tab delimited file ( containing chinese characters) from Application server.

i have tried in different ways , but i face following issue.

 

 

Out System is Uncode and the file is prepared in Excel and saved as " Unicode( tab delimited) Text file".

 

 

1.   I tried with OPEN DATASET p_inp_file FOR INPUT IN TEXT MODE ENCODING  default. but  it failed at statament READ DATASET p_inp_file INTO  lwa_line  . statement with error "CX_SY_CONVERSION_CODEPAGE"

 

 

What happened?

    During conversion of a text from code page '4110' to code page '4102',

    one of the following occurred:

 

 

 

 

2.

OPEN DATASET p_inp_file  FOR INPUT IN LEGACY TEXT MODE

    BIG ENDIAN CODE PAGE '4102'. Got below error immediately after executing the open data set statement.

 

 

Error:

The conversion of certain code pages is not supported.

What happened?

    The conversion of texts in code page '4102' to code page '4102' is not

    supported here.

 

 

3.

OPEN DATASET p_inp_file  FOR INPUT IN LEGACY TEXT MODE

    BIG ENDIAN CODE PAGE '4110'. Got below error immediately after executing the open data set statement.

 

 

Error:

The conversion of certain code pages is not supported.

What happened?

The conversion of texts in code page '4110' to code page '4102' is not

supported here.

 

 

 

 

4.

OPEN DATASET  p_inp_file FOR INPUT IN LEGACY  TEXT MODE BIG ENDIAN CODE PAGE '1100'

                          IGNORING CONVERSION ERRORS . I see that a special charecter '#' is added after each charetcre of the input file.

ex: if one of the field value is : Z1MAT , after reading the file it was:#Z#1#M#A#T

 

 

read1.PNG

read1.PNG

 

 

 

from the front end(PC) im able to read the same file with out any conversion, but same file when transferred to application server not working.

 

 

Please help to suggest how to read this Unicode tab Delimited Text file from application server. I see that its current code page 4102.

 

 

 

 

Thanks

How to find Program name which is not having T-code in Production?

$
0
0

Hi,

     How to find Program name which is not having T-code in Production? or which is running in the background.

I checked the TSTC table but it is showing program name against the T-code, but I need the table which is showing T-code against the program.

 

 

Please Help,

Regards.

BAPI_GOODSMVT_CREATE

$
0
0

Hello Everyone.

 

I have a requirement to perform bapi_goodsmvt_create for Movement type 562.

But I'm getting an error in i_return table saying 'No items transferred'. Why is that? Can anyone help me out?

 

And this is my code:

 

READ TABLE i_item1 INTO k_item1 WITH KEY mark = 'X'.

     IF k_item1-mark = 'X' AND k_item1-pstyv = 'YTAS'.

       SELECT a~ebeln a~ebelp INTO TABLE i_ekknbatch FROM

         EKKN AS a INNER JOIN VBAP AS b ON a~vbeln = b~vbeln WHERE

         a~vbeln = k_headermp-vbeln AND a~vbelp = k_item1-posnr AND b~pstyv = 'YTAS'.

       READ TABLE i_ekknbatch INTO k_ekknbatch INDEX 1.

       IF sy-subrc = 0.

         SELECT COUNT(*) FROM EKET WHERE

           WEMNG = '0' AND EBELN = k_ekknbatch-ebeln AND ebelp = k_ekknbatch-ebelp.

         IF sy-subrc <> 0.

           MESSAGE s004(zflip) DISPLAY LIKE 'E'.

           LEAVE TO SCREEN 0100.

         ELSE.

           SELECT MATNR CHARG LIFNR BDMNG FROM RESB into TABLE i_resbbatch WHERE

             ebeln = k_ekknbatch-ebeln AND ebelp = k_ekknbatch-ebelp.

           READ TABLE i_resbbatch INTO k_resbbatch INDEX 1.

           IF sy-subrc = 0.

             REFRESH: i_return.

             CLEAR: k_return.

             ""Populate Header

             MOVE: sy-datlo  TO k_goodsmvt_header-pstng_date,

                         sy-datlo  TO k_goodsmvt_header-doc_date,

                         sy-uname  TO k_goodsmvt_header-pr_uname.

             ""Populate Code

             MOVE: c_gmcode TO k_goodsmvt_code-gm_code.                     "c_gmcode is '01'

             ""Populate Items

             MOVE: k_resbbatch-matnr TO k_goodsmvt_item-material,

                         k_resbbatch-charg TO k_goodsmvt_item-batch,

                         k_resbbatch-lifnr TO k_goodsmvt_item-vendor,

                         k_resbbatch-bdmng TO k_goodsmvt_item-entry_qnt,

                         c_bwart TO k_goodsmvt_item-move_type.                       "c_bwart 9s '562'

             APPEND k_resbbatch TO i_resbbatch.

             CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

               EXPORTING

                 GOODSMVT_HEADER               = k_goodsmvt_header

                 GOODSMVT_CODE                 = k_goodsmvt_code

*                     TESTRUN                       = ' '

*                     GOODSMVT_REF_EWM

               IMPORTING

                 GOODSMVT_HEADRET              = k_goodsmvt_headret

                 MATERIALDOCUMENT              = k_materialdocument

                 MATDOCUMENTYEAR               = k_matdocumentyear

               TABLES

                 GOODSMVT_ITEM                 = i_goodsmvt_item

*                     GOODSMVT_SERIALNUMBER         =

                 RETURN                        = i_return.

*                     GOODSMVT_SERV_PART_DATA       =

*                     EXTENSIONIN                   =

 

             LOOP AT i_return INTO k_return WHERE type = 'E'.

               g_error = 'X'.

               CALL FUNCTION 'FORMAT_MESSAGE'

                 EXPORTING

                   id        = k_return-id

                   lang      = sy-langu

                   no        = k_return-number

                   v1        = k_return-message_v1

                   v2        = k_return-message_v2

                   v3        = k_return-message_v3

                   v4        = k_return-message_v4

                 IMPORTING

                   msg       = v_msg

                 EXCEPTIONS

                   not_found = 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.

               CONCATENATE text-047 v_msg INTO v_msg .

               MESSAGE v_msg TYPE 'E'.

             ENDLOOP.

 

             CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

*       EXPORTING

*        WAIT          =

*       IMPORTING

*        RETURN        = .

 

           ENDIF.

         ENDIF.

       ENDIF.

     ENDIF.

   ENDIF.




Reversible Business Function - Limited

$
0
0

Hi All,

 

On working on SAP Switch Framework, I came across a statement in SAP Help Portal that, "Due to technical restrictions, only a limited number of business functions are reversible ".

 

Limited Number means, can we know this number ? Or what is the deciding factor for this limitation ?

 

Kindly help me on this topic.

 

Thanks

Arati

Validation for select option holding date value

$
0
0

Hi everyone,

 

I have to validate the entry in select-option(s_conft here) to an internal table field holding date ( detltab-conf_date_time+11(8) here) in

format  e.g: 11:11 AM.

the select option field is holding the value in IEQ111100000000 format.

 

To achieve this functionality,i did the following coding

 

IF s_conft IS NOT INITIAL.

      lv_tim = detltab-conf_date_time+11(8).

       IF lv_tim+6(2) EQ 'PM'.

         lv_hr1 = lv_tim+0(2) + 12.

       ELSE.

         lv_hr1 = lv_tim+0(2).

       ENDIF.

 

       lv_hr2 = lv_tim+3(2).

 

       CONCATENATE lv_hr1 lv_hr2 INTO lv_tim_final.

 

       IF NOT lv_tim_final IN s_conft.

         DELETE detltab.

         CONTINUE.

       ENDIF.

     ENDIF.


But this piece of code is not working.

Please help me out with this.

I need to delete entries from internal table if its date entry doesn't match the date entry in selection screen .

issue with standard report copy into custom side

$
0
0

Hi ,

 

I had copied the standard report PPIO_ENTRY into custom report to satisfy some condition which cannot be fullfilled through PPIO_ENTRY ( which is the prog for transaction  COOIS ) . Now I want to remove the mass processing tab in the custom report output and in the list drop down I want to display only the operations.

 

Could you please suggest how to proceed , this has very complex coding involved.

 

Thanks,

RG

Change Shipping Condition and Incoterm using Excel Upload

$
0
0

Hi All,

 

I have a requirement to update Shipping Condition VSBED ( inturn all relevant Fields like Route etc ) and Incoterms INCO1 using Excel Upload and Change Purchase Order Items. I have seen multiple Posts relevant to BADI : ME_PROCESS_PO_CUST --> Method :PROCESS_ITEM.

 

But since i want to upload from an Excel sheet, help me pick the best way to update above fields.

 

 

Regards,

Anand R 

Adding a new tab in t-code HU03

$
0
0

Hi,

 

I have a requirement to add a new custom tab in HU03 T-code.

any pointers how could i do that?

 

I searched a lot but could not find any solution for that. I found BADI_HU_DIALOG which can be used to Display custom Screen in place of Standard Screen. but i could not find any Option to add new tab in it.

 

Any help would be highly appreciated.

 

 

Thanks

rajpal

Change values in Workarea

$
0
0

Hello Friends,

 

I have a work area e.x (wa_tab1) and in this i have 100 fields and most of these fields are filled with values 'X'.

 

Now if i want to change all the work area (wa_tab1) fields which are filled with value 'X' how can i make it simple.

 

e.x if wa_tab1-field1 = 'X'.

      wa_tab1-field1 = 'Y'.

     endif.

 

The above statement shows the method of changing the single field value , if i want to repeat this for 100 fields how can i make it simple.

 

Regards,

Vinodkumar.

Modulepool programming subscreen

$
0
0

Dear Gurus ,

 

      i have created a module pool program that it  take one customer number as a input and when the user click on Search button (push button) in '1000' screen (main screen) and it will show the VBAK details in a subscreen '0100' .

  and here my problem is when the user click on that subscreen '0100' details another subscreen '0200' have to show VBAP details.

how to do this please guide me .

 

Regards.


Problem in Label printing on ZEBRA printer

$
0
0

Hi,

 

We are printing Labels on Zebra Printer. The existing development is done with SAP script. the ZPL commands are defined in SO10 text and it is included in main window of sap script.

 

we are using device type LB_ZEB and Printer ZM600 300dpi. currently it is working fine.

 

 

Now we have to print another Label with the existing Label. I do not want to use SAP Script for new label. I also do not want to convert existing script to smartform currently because i have very less time and existing lable is complex.

 

So i decided to create a smartform and called is before sap script in program.

 

the Problem is that I am not able to print smartform. the SAP script is getting printed successfully.

 

I searched and found that LB_ZEB can only print SAP Script.

 

can we print both sap script and smartform on Zebra Printer using a single device type?

is it possible?

 

 

 

Thanks

Rajpal

its about Qe01

$
0
0

Hi all,

 

I have a problem about qe01 result field.

 

How can I get value result field in qe01 ?

 

I need to get value with function but I cant find funtion about that.

Ekran Alıntısı.PNG

Why FREE is so underused?

$
0
0

Hello ABAP Gurus,

 

I had this nagging question for a long time about FREE and CLEAR statements while used to initialize internal tables. I understand that the only difference between them is that FREE releases the complete memory area for the internal table whereas CLEAR reserves the required initial memory area for the internal table.

 

Throughout my ABAP development career, I have seen CLEAR statement being used mainly, but then FREE can also be used for same purpose, may be even with better performance, as it releases the complete memory.

 

Can you guys think of something which made people choose CLEAR over FREE? Or my assumption, 'FREE is underused' itself is wrong?

Any comments, ideas are welcome!!

 

Thanks & Warm Regards,

Raveesh

How to post clearing with direct input

$
0
0

Goal

Sometimes you may need create FI documents in your customer ABAP‑programs. Several techniques are useful for this, e.g. batch-input execution, direct accounting document input and so on and also BAPI.

And sometimes you may need to post FI-document with clearing including partial one. In this case it is not so obvious to use standard programming interface without batch‑input simulation of t-code ‘FB05’, such as function ‘AC_DOCUMENT_DIRECT_INPUT’ or BAPI function ‘BAPI_ACC_DOCUMENT_POST’. The text below explains as to make it for both cases.

 

Solution for AC_DOCUMENT_DIRECT_INPUT

The first obstacle for clearing with direct document input is a lack of input parameters with clearing‑info: AUSZ2_TAB and AUSZ_CLR_TAB types. In other words you want to tell FI‑interface that some item should be cleared by your document, but you can’t. You may ask why standard programs as ‘SAPMF05A’ processes a clearing with no problem, well answer is ‘BELEG’ RWIN-process used in that case, not ‘DOCUMENT’.

Key points to receive and handle clearing information with a non‑dialog posting procedure are:

  • function ‘FI_DOCUMENT_PROJECT’: saves clearing info from input parameters for further posting
  • function ‘FI_DOCUMENT_POST’: sends clearing info last saved to the real update module ‘POST_DOCUMENT’

The first function triggered at DOCUMENT/SPLIT RWIN‑event. So the only you need is to fill clearing info before the one has called. You might use one of 2 techniques to do this, depending on development rules for you project team:

  • make implicit enhancement directly at the beginning of ‘FI_DOCUMENT_PROJECT’
  • or register you own RWIN handler for DOCUMENT/CLOSE event: t-code SM30, view TRWPR; take the rule 'SUBNO > 900' into account

In any case you might use unified ABAP logic (see attached example for RWIN) according to the following restrictions:

  • one item in document you create may clear only one item in other document
  • each item in your document has non-zero amounts
  • full clearing is possible if you explicilty mark it, partial clearing is performed by default

Short description of ABAP logic attached:

  • Take BUKRS, REBZG, REBZJ, REBZZ from T_ACCIT[p] that should be set there by caller program;
  • Read amounts T_AUSZ_CLR[p]‑WRBTR, -DMBTR from BSEG (or some non‑cleared index table) found by the reference and add new records to itab T_AUSZ_CLR with corresponding BSEG values.
  • Calculate reminder T_AUSZ_CLR[p]‑DIFFW, ‑DIFHW as difference between clearing and cleared amounts
  • Mark T_AUSZ_CLR[p] for partial clearing: CLRIN = ‘2’. But if DIFFW and DIFHW are both zero it is possible to make full clearing by marking T_AUSZ_CLR[p]-CLRIN = SPACE; to control this logic the T_ACCIT[p]-AUGBL value is used: = ‘*’ (full clearing) or = ‘ ’ (partial).
  • For the whole document create single row in T_AUSZ2: fill BUKRS = T_ACCIT[p]-BUKRS. And when full clearing needed you must fill T_AUSZ2‑AUGBL = ‘*’ also.

Solution for BAPI_ACC_DOCUMENT_POST

Well first the most of solution told above is applicable to BAPI also. Because the same function AC_DOCUMENT_CREATE called from AC_DOCUMENT_DIRECT_INPUT as well as from BAPI function.

The specific obstacle for BAPI is a lack of fields where you can pass clearing item reference: REBZG, REBZJ, REBZZ, and also helpful fields REBZG_CHECK and AUGBL. The solution contains 2 steps:

  • At BAPI call point write your clearing reference(s) in you custom structure, or you may find and use some standard one, and serialize it to EXTENSION2 parameter of type BAPIPAREX_TAB. Don’t forget that POSNR field has to be present in the structure along with REBZG, REBZJ and REBZZ fields.
  • Implement BADI ACC_DOCUMENT, or – for new ERP versions – the enhancement spot BADI_ACC_DOCUMENT and create BADI implementation inside it with filter AWTYP = BKPFF:
    • Use ABAP logic from sample method CL_EXM_IM_ACC_DOCUMENT->CHANGE to move you reference into corresponding T_ACCIT[p]-REBZG, -REBZJ and –REBZZ
    • Ensure that document you clear is compatible with FUNCTION ‘FI_DOCUMENT_CHECK’ standard checks. Elsewhere you might set T_ACCIT[p]‑REBZG_CHECK = ‘N’ and skip invoice reference checks

Reading XML file using BAPI I must use adapters .

$
0
0

Reading XML file using BAPI and then uploading that xml file data into SAP using BDC.

 

I cant take file on to my Application server I am getting the file dynamically from other file server and I need to use BAPis to read data from XML file.please tell me what should be my Import,Export and Tables parameterrs should be.

 

Thanks

Viewing all 8332 articles
Browse latest View live


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