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

select statement is going for dump.

$
0
0

hi experts ,

I've created a FM with import parameters as plant and storage location.

i've to retrieve the following data into a internal table itab. using table mcha and mchb.

 

 

this the code

 

 

Select matnr , charg, vfdat from MCHA table

          where MCHA-MATNR = itab -MATNR

          AND mcha-lvorm = ‘ ’

         AND WERKS = iv_werks

Select matnr , charg, vfdat from MCHA table

          where MCHA-MATNR = itab-MATNR

          AND mchA-lvorm = ‘ ’

         AND lgort = iv_lgort.

 

can u pls tell me wher ei'm going wrong.


Cannot perform "move" operation on structure (ALV related)

$
0
0

Hey experts,

I'd like to reimplement something I did about 2 years ago.

Suddendly I face difficulties in the implementation (I was about to reuse my old code I saved in a txt file).

 

 

 

   data: go_container type REF TO  cl_gui_custom_container,

      go_alv_grid type REF TO cl_gui_alv_grid,

      gv_layout TYPE lvc_s_layo.



   move 'X' to gv_layout-edit.    <---compiler stopps here

 

 

The compiler says: Statement is not accessible.

gv_layout looks as following:

 

Capture.PNG

 

What is wrong? Did they change something with the syntax?

 

Best regards and thanks in advance,

Paul

Me22n - Adding a New Field

$
0
0

Hi everybody,

 

   I just need to add a new field in me22n in the Condition's tab .

 

  I know we can create a new fields in new tab but i want to whether we can create a new fields in an existing Condition Tab(item Level) .

 

 

 

Thanks in Advance

 

Regards

Prakash.S

CATM Message Table

$
0
0

Hello experts

 

I am writing a Report which executes CATM with CALL TRANSACTION including the Message Tab.

The Problem i encounter is, that the Message Tab isn't returning all the Errors, which I encounter when executing it.

In some Error cases it's just returning empty.

 

So my question is, is there a possibility to get the whole Message Tab, which pops up at the end of the Transaction in a window?

 

Thanks a lot for your help

Philippe

Need to populate Item details in automatic generated PO from Shipment

$
0
0

Hi,

 

  we have a requirement, that we need to populate  Item details (Material text, price and quantity) in automatic generated PO from Shipment (VT01N) transaction. Service details are not captured in Service tab in Item details (In PO). Is there any configuration or BADI/user-exit to overcome this issue.

 

 

Regards

Raju PNM

DISABLING SAVE BUTTON WHILE CALL TRANSACTION

$
0
0

Hi Abapers,

 

My requirement is to disable the standard transaction save button while I triggering it from Zreport using Call Transaction skip initial screen.

 

Please suggest ur ideas.

 

Thanks in advance.

 

Regards,

Praveen Kumar G.V.S

Assignment Number(ZUONR) Download problem in GUI_DOWNLAOD

$
0
0

Dear Experts,

 

 

I am finding an strange issue while using GUI_DOWNLOAD.

 

 

I am downloading some data related to  Customer Ledger which also includes Assignment Number(ZUONR), all the data is downloading correctly except one field i.e. ZUONR  after download last 4 characters are replace with 0.

 

ITAB.jpg

After downloading the data using GUI_DOWNLOAD data is last three digit is replaced with Zero as shown in the below figure

 

 

Zero.jpg

Awaiting for a positive feedback.

 

Regards,

Bhushan

Validation for Listing of Article in MM41 MM42

$
0
0

Hello Experts,

 

We have a requirement where we need to add a check for Articles where Listing not to be done. If Article has a alphabet or alphanumeric these articles needs to be excluded from Listing. So when I click on Save, I need to populate a message as Listing cannot be done for Alpha and alphanumeric articles

 

Validation should only happen during Listing as I should be able to create a alpha or alpha numeric article when clicked on SAVE

Is there a way I can achieve this as I have found a BADI : BADI_MATERIAL_CHECK~CHECK_DATA_RETAIL

 

 

Please let me know what can be done here.

 

Many Thanks,

 

Kind Regards,

Nikhil


How to create a customize search help?

$
0
0

Dear SAP Expert,

 

May i seek for your advice. I've a requirement to create a search help for a newly created input field in screen 8459 for transaction VA02. The requirement of the search help is to show draw-doknr (Document number) that belongs to the condition (dokar = 'ZP1' and dokvr = '00' and doktl = '000') only. I've tried 2 search help provided by SAP such as elementary search and also collective search. However, I could not achieve the result that it suppose to be. Is there any other way to realize this requirement? Please help me. Thanks in advance.

 

Regards,

Shawn

Batch input executed in program on RF gun?

$
0
0

Hi,

 

My client is scanning labels into a program on an RF handheld device.

This program later executes a CALL TRANSACTION tcode USING bdcdata (in mode 'N'). They are actually trying to execute a batch input of the transaction HU02.

When we execute it directly in SAP, the program works correctly. When we execute it on the handheld device, we get the following error:

 

Control Framework: Fatal error - GUI cannot be reached

 

Is this error because of the size of the windows on the device? Is it even possible to execute a batch input of a standard transaction in a program on a handheld device? Or is there a way to fix this?

 

Thank you!

 

 

 

 

How to debug FB01

$
0
0

Hi Experts,

 

I am trying to post an FI document manually through FB01 and when I put a break point at FM BAPI_ACC_DOCUMENT_POST, it didn't stop. I am thinking that FB01 might be using BDC or LSMW when "SAVE". Do not know how to figure out which one it is using. Appreciate if anybody could guide me how to fins what FB01 is using at background to post a document when "SAVE".

 

 

Thanks,

 

Nani

User exit / BADI in MM41 transaction on SAVE

$
0
0

Hi,

Could you please let me if there is any User exit or BADI in MM41 transacation on SAVE Article?

BAPI_ACC_GL_POSTING_POST with Extension1

$
0
0

Hello Experts,

 

I am trying to use the BAPI BAPI_ACC_GL_POSTING_POST with Extension 1 for FBS1 Posting. I also need to update the Planned Reversal Date.

 

At the moment the BAPI Structure does not have STODT i.e. planned reversal date field.

 

Does this work for FBS1 Accural/Deferral Posting wherein we have to specify the planned reversal date?

 

 

 

Regards,

Manu

XSLT-ABAP using Call Transformation

$
0
0

Hello Friends,

 

I am new to this XSLT-ABAP transformation. I went through the blogs and forums and got a fair bit of idea on this. Now, i am trying to create a simple program/ xslt transformation to test the scenario. Once this is successfull i need to implement this in our project.

 

I am not sure, where and what i am doing wrong. Kindly check the below given XSLT/ XML/ ABAP Program and correct me.

 

My XML File looks as given below:

  <?xml version="1.0" encoding="utf-8" ?> 
- <List>
- <ITEM>  <ITEMQUALF>ITEM1</ITEMQUALF>   <MATERIAL>MAT1</MATERIAL>   </ITEM>
- <ITEM>  <ITEMQUALF>ITEM2</ITEMQUALF>   <MATERIAL>MAT2</MATERIAL>   </ITEM>
- <ITEM>  <ITEMQUALF>ITEM3</ITEMQUALF>   <MATERIAL>MAT3</MATERIAL>   </ITEM>  </List>

 

My XSLT Transformation looks as given below:

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">  <xsl:strip-space elements="*"/>  <xsl:template match="*">    <List>      <xsl:for-each select="ITEM">        <xsl:element name="ITEM">          <xsl:element name="ITEMQUALF">            <xsl:value-of select="ITEMQUALF"/>          </xsl:element>          <xsl:element name="MATERIAL">            <xsl:value-of select="MATERIAL"/>          </xsl:element>        </xsl:element>      </xsl:for-each>    </List>  </xsl:template></xsl:transform>

 

My ABAP program looks as below:

REPORT  ztest_ram.

TYPES:
  BEGIN OF ty_test,    itemqualf TYPE char10,    material  TYPE char10,  END OF ty_test,  ty_t_test TYPE STANDARD TABLE OF ty_test.

DATA:
  l_xml       TYPE REF TO cl_xml_document,  t_test      TYPE ty_t_test,  wa_person   TYPE LINE OF ty_t_test,  t_xml_out   TYPE string,  v_retcode   TYPE sy-subrc,  v_totalsize TYPE i.

DATA: gs_rif_ex     TYPE REF TO cx_root,      gs_var_text   TYPE string.

* Create object
CREATE OBJECT l_xml.
* Call method to import data from file
CALL METHOD l_xml->import_from_file  EXPORTING    filename = 'C:\xml\xml_test.xml'  RECEIVING    retcode  = v_retcode.
* Call method to Render into string
CALL METHOD l_xml->render_2_string  IMPORTING    retcode = v_retcode    stream  = t_xml_out    size    = v_totalsize.
* Call Transformation
TRY.    CALL TRANSFORMATION (`ZXSLT_RAM`)            SOURCE XML t_xml_out            RESULT     outtab = t_test.  CATCH cx_root INTO gs_rif_ex.    gs_var_text = gs_rif_ex->get_text( ).    MESSAGE gs_var_text TYPE 'E'.
ENDTRY.

 

When i run this ABAP program to fetch the data from XML in to Internal table, i get the error message:

Incorrect element List for XML-ABAP transformation

 

I am really not sure how to proceed further. Could any one help me on this?

 

Note: Please do not paste the same links, as i have gone through most of them.

 

Thank you.

Best Regards,

Ram.

How to upload a poilsh & Czech Characters using GUI_upload in SAP 4.6c

$
0
0

Hi All,

 

I am trying to Upload Polish and Czech text using GUI_upload in SAP R/3 4.6c verion,but some charecters not coming correctly.

 

Please help me .

 

Many Thanks,


bdc for co11n transction

$
0
0

Dear Experts,

 

I have developed BDC program for co11n transaction

 

In standard co11n Goods movement Batch determination if components stock is not available  co11n  transaction stops  saving of confirmation and pops an error message

'Error in goods movement'

where as in bdc program this error is not getting captured and the confirmation is being saved with message

'confirmation saved : goods movement xx failed 1' ,I am generating the logs where in this message is being triggered

 

Where as we expect the system should behave as per standard co11n transaction.what can be the possible error in my BDC program

 

Kindly guide me.Required solution urgently

 

points will be rewarded for the correct answer

 

Venkatesh

How to maintain a user in two variant group

$
0
0

Dear all,

 

I have one requirement regarding Transaction variant. I am not able to assign two Variant Group to a single user.

Its work like a switch. when i set one proposal to one transaction variant it got removed from the other.

 

How this can be attained.

 

Thanks In advance.

Change attachment name for PO email attachment

$
0
0

Hi Gurus,

 

Please let me know the process in changing the PO attachment name which is currently 'Print data' to the actual PO number. I implemented SAP Note 191470 but I was only able to achieve changing the subject line of the email.

 

In the SAP Note it states:

 

     'Note that the values from the mail title are used to create the description for the attachment.'

 

I did have the mail title on the cover page text field. Also NAST-TDCOVTITLE has the PO number in it but still the attachment name/description is still 'Print data'.

 

Any help would be very much appreciated(of course, points will be given. ).

 

 

Thanks in Advance,

Derick

Problem in Block Alv

$
0
0

Hi Friends,

    

     I Got a problem while creating block alv report...

     The problem is as stated below..

     In my report i have 3 blocks out of which one block is interactive which is the first block in my case,

     when i click on the result of 1st block it is going to the 2nd list successfully.

     after that when i press back button it is showing blank screen named SAP on top,

     IF AGAIN I PRESS THE BACK BUTTON THEN IT COMES DIRECTLY TO SELECTION SCREEN.

    

     Another thing "THE FIRST LIST IS BLOCK ALV AFTER LINE SELECTION IT CALLS THE SECOND LIST WHICH IS CLASSIC REPORT"

    

 

     THE PROBLEM IS :

     It is not returning to the previous list(i.e First List) from 2nd list when i press the back button...

     please help me to come out of this situation..

generate persistent class of a selfmade table which access to a text table

$
0
0

Hi SCN-Users,

I hope you could help me again .

 

My status quo:

I have a main table ZTRANSLATE_FIELD with the fields CTYPEID and PARENT_CTYPEID.

For this table I defined a text table ZTRANSLATE_TEXT to enable translation for international users. The text table contains the field CTYPEID, SPRAS and the fields CTYPENAME & CTYPEDESC which should be translatable.

 

The text table works fine if I log on f.e. as a english oder a german user.

So, if I start SE11 and show the content of the main table ZTRANSLATE_FIELD, it displays the complete table with the fields CTYPEID, PARENT_CTYPEID, CTYPENAME, CTYPEDESC - in the appropriate language:

[image 1]

 

 

 

Now my problem:

I have to define a persistent class of the table  ZTRANSLATE_FIELD to access all the attributes over ABAP/ Web Dynpro. But this main table only contents two fields CTYPEID & PARENT_CTYPEID in DDIC:

[image 2]

 

For the persistent class I also need to access the translatable fields CTYPENAME and CTYPEDESC, which are defined in the "external" text table ZTRANSLATE_TEXT:

[image 3]

 

 

If I save a new class over SE80 and define its "Persistence" I only could add one table, which should be the required main table ZTANSLATE_FIELD. But then there aren't shown the two fields CTYPENAME & CTYPEDESC of the linked text table, which I also need in this class:

[image 4]

 

 

So, the persistent class should look like the table content which is shown in [image 1].

 

How could I link these two tables, that I could define one persistent class with the fields/methods CTYPEID, PARENT_CTYPEID, CTYPENAME & CTYPEDESC - like it is shown in [image 1]?

 

 

 

I hope someone could help me - I'm thankful about every tip.

 

Greetings,

Andi

Viewing all 8332 articles
Browse latest View live


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