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

Table Control in ABAP

$
0
0

Hi Gurus / Experts,

 

I have a requirement to create an table control in my report.

 

Well,

 

I need to create my report in table control, but there is a problem (because I am new in ABAP).

 

My client want a report contain a table like the example at the attachment.

 

 

Please if you know something to help me, tell it to me I need it and I appreciate it, I will give reward to you.


Select Option f4 search help.

$
0
0

Hi All,

I have used FM F4IF_FIELD_VALUE_REQUEST for select option search help. However when i click on the f4 help it gives mi a list as below

 

Cmpany code| Name
1000               | SAP

2000               | SAP2

so when i select any one from this, the value displays on selction option as '1000'. But i need to display value as 'SAP'. so i want the name instead of value.

How can i do that ??

How can I trigger a Datatransfer of BP to a CRM

$
0
0

Hi,

 

I have a Problem in a Programm.

 

Following Situation:

The User called Transaction XD02 and changed the Text of a Customer.

The changed Text will be correct tranferd to a connected CRM-System.

 

Now my Problem:

I designed a Z-Programm for the User, to manage many Information in one Z-Programm.

One of the implemented Function is, to change this Text of the Customer in an Editor in this Programm.

 

I read the Text with Function READ_TEXT

The changed Text will be saved with Function SAVE_TEXT

Then I call Function CUSTOMER_TEXTS_CP_CREATE for creating Changepointers for this Text.

Then I call COMMIT WORK.

 

This works fine in the ERP-System. When I look in the Customer (XD02), i see the new Text.

In the Database for the ChangePointers the Entries are exact the same.

But the new Text isn't replicated to the CRM-System.

 

Also doing "very bad thinks" (changing the customer twice by BatchInput with initalising SORT2 and setting back to the right value) doesn't change something. Now i get a BDoc, but the Text wasn't transported with this change.

 

My question is:

How can i trigger this Customertextchanging to a connected CRM-System

 

Thank for Help

Matthias

No word wrap

$
0
0

Hi experts,

 

I have recieved a code which I was told to just copy paste. The problem that occurs is that my code wrap when I paste it even if I have the setting "Disable Word Wrap". Any ideas how I can solve this problem? See pictures below:

 

ABAP display.png

Example: Code before copy paste:

Correct code.png

Example: Code in the system after copy paste:

Wrong code.png

 

Thank you in advance!

 

Best regards,

Hannes de Richelieu

certification

$
0
0

hello every one,

                    i want to do certification can any one give me the details?

thanks in advance

Joining HRP1001 and PA0002 with SQ02

$
0
0

Hi all,

 

I'm new to SQ02, I'm used to create report with ABAP.

I'm trying to create a simple query using HRP1001 and PA0002 joined by hrp1001-sobid and pa0002-pernr.

The fields are different so it's not possible to do it with the graphical join interface.

I know I should put some ABAP somewhere in the infoset but I don't know what code and in which code section.

Please provide me with step by step instructions to achieve this.

 

Thanks

WRITE_FORM is invalid, OPEN_FORM is missing

$
0
0

Hi All,

 

I am getting the error no. TD423 with the error message 'WRITE_FORM is invalid, OPEN_FORM is missing'. I checked most of the discussions but coudln't get an answer yet.

 

This is what i did:

1. NACE setting:

  MEDIUM          PROGRAM             FORM Routine   Form        PDF/Smartform Form     TYPE

External Send - <Program Name> - ENTRY -             BLANK - <SMARTFORM Name> - SMARTFORM

 

2. Open the order in VA02

   - Extras -> Output -> Header - > Edit -> Added a entry

     Output TYpe     Desc     Medium               Funtion    Partner   Lang

      ZAK1               Order     External Send        SP        XXXX     EN 

 

3.  Extras -> Output -> Header - > Print Preview -> Slected the above entry -> Clicked in Preview

I am getting the error here.

 

Checked:

1. The sold-to had the email in XD03.

2. I Debugged the Print program -

    - It stopped at NAST-NACHA EQ 5. The CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE' is returning SY-SUBRC = 5.


Can anyone please help me to find where the issue is?

 

Thanks in advance,

Karuna

PGP encryption (.txt file)

$
0
0

Hi All,

 

I have written an ABAP program which fetches data from R/3 (PA, OM and Payroll data) and creates a semicolon (;) separated text file on application server. As the data in text file is confidential, user wants PGP encrypted file. As I have not done this before, could anyone please help me on this??

 

Also please let me know what are all the changes I have to do in program? Is there any configuration requires? If so, what are all the configuration needs to be done in SAP system? Is there any inputs require from end users??

 

Appreciated if anyone tell me step by step procedure after fetching data from R/3 system.


Thanks in advance.


Regards,


Ronak 


UC_OBJECTS_NOT_CHARLIKE in FM SAP_CONVERT_TO_TEX_FORMAT

$
0
0


Hi,

I am creating an internal table with table type MARA and I am populating all the records into it.

I try to use FM SAP_CONVERT_TO_TEX_FORMAT  to add field separator between the records.

But I get a runtime error "UC_OBJECTS_NOT_CHARLIKE"

For the statement
   "IF ... op1 CO op2 ..."
only character-type data objects are supported at the argument position
"op1".

In this case. the operand "op1" has the non-character-type "s". The
current program is a Unicode program. In the Unicode context, the type
'X' or structures containing not only character-type components are
regarded as non-character-type.

 

 

I found that there is a field STFAK(Stacking factor) in table MARA whose internal type is "s"

 

This FM works fine for table BKPF.

 

Is there any way to resolve this problem?

Handling unexpected XML tags in an ST Simple Transformation

$
0
0

Hi all,

 

I am writing an ST program to parse an incoming XML string, and I want to know if there is a way to make it flexible enough to make it able to handle new XML tags in the input stream, if the source system changes their XML structure.

 

For example, suppose that my program needs to get the street address, city, and state from the following XML stream.
 
<Address>
  <Street>330 RATHBURN RD WEST</Street>
  <City>Chicago</City>
  <State>IL</State>
</Address>

 

I can easily code that part with ST logic such as

 

<Street>
  <tt:value ref="abap_street"/>
</Street>

<City>
  <tt:value ref="abap_city"/>
</City>

<State>
  <tt:value ref="abap_state"/>
</State>


But further suppose that the system sending me the XML stream makes a change to include apartment numbers in their address format, such as:

 

<Address>
  <Street>330 RATHBURN RD WEST</Street>
  <Apartment>27</Apartment>
  <City>Chicago</City>
  <State>IL</State>
</Address>


I do not need to capture the apartment number, but I want my ST program to be able to run without crashing if an unexpected tag like that occurs. 

 

I know that I can capture a cx_st_match_element exception and keep my ABAP program from crashing, but that does not let me parse through to the end of the XML stream and get all the data I need.  I want the ST code to be able to capture the data from all expected XML tags and ignore the unexpected tags without raising an exception.

 

Is that possible?   

 

Thanks

 

Gord

Spreadsheet data from AUFK and EQUI

$
0
0

I have been trying to get a spreadsheet that includes data from both AUFK and EQUI tables.

 

For the sake of simplicity, I employees to be able to enter their functional location and the replort pull up all the orders with a status of WSCH.  The layout should only contain the order number, Equipment Number, and Description of Technical Object (AKA Equipment Description) along with the total planned hours.

 

I tried doing a table join in SQVI but that didn't work.  Maybe Im thinking about it all wrong,

 

Any suggestion?

 

I don't have access to SQ01, 02, 03 to create my own queries.

call a screen of transaction PR05 from a Zprogram

$
0
0

hello people

 

 

 

I am creating a program that does the same thing PR05 transaction, but for various employees, rather than just the PR05 makes for one. My idea is to create the first screen with the selection data and when you select a row, call screen which is also called when it is done the same thing in PR05.

Is it possible to call a screen and pass it the parameters? If yes, how to know which parameters to pass and how.

 

 

Thank you all.

delete the entry from xvbap when line item is deleted

$
0
0

Hi ,

 

when i delete the line from va02 and entered the same item the table Xvbap contains the previous entry  with zero kwmeng value and new  entry with the provided quantity .

 

this lead to the price missing error in the sales order .

 

How can the delete the entry from xvbap table also assign the  Sales Document Item to that new item (same material )

SAP settings

$
0
0

Hi,

 

I have got access to the project SAP systems recently; how do I ensure that the object names entered in SE11 are not lost & can be seen in SE11  after a new fresh login? What settings do I need to apply?

 

Regards,

Tanmoy

Field for total craftpersons

$
0
0

Is there a table where I can pull in the total craft persons (Mechanics).  We previously used maximo and entered CRAFTQTY for how many mechanics for each job.  Trying to find an equivalent in SAP.


how to print using smartforms from an internal table with checkbox ?

$
0
0

hi everyone !

        say i have an internal table with checkbox..now i want to print every single row of the table where checkbox is on. if i select say, five checkbox in the table and click on print button, then five pages will be generated in smartforms. plz show me the way..

 

 

regards,

santanu nayek

UI element for displaying data in tabular format in WD

$
0
0

Hi,

 

I need to display the data in a tabular format on the Webdynpro screen. Its not a table i.e I won't be binding its data source to some context node. Its a group of fields arranged like a table. I need a UI element similar to template in Smartforms, where every cell will be bound to a seperate attribute.

 

Regards

Nida

BAPI_OBJCL_CHANGE - Superior class locked (C4 200)

$
0
0

Hi,

 

I run massive parallel batch updates using BAPI_OBJCL_CHANGE on a specific class of our equipments.

 

In an equipment, I can see that the class I use get some of its values from superior classes.

 

When I run my batch, some objects get a C4 200 error (Superior class locked).

 

Since when a BAPI can't be used in parallel?

 

Why it happens?

 

My BAPI call is very straight forward (I specify objectkey, objecttable, classnum and classtype), and I do a COMMIT after each 100 objects.

 

Thanks,

Change status of sent request in SOST

$
0
0

Hi guys!

I started to work into the SAP world about two months ago, and upon here I found all the answers I need specially in this forum, plenty of good advice!

 

However, I can't find a solution for this problem: I need to change, by ABAP program, the status of a sent request.

I clarify myself: we have a fax server that send an email of sent confirmation (success or error) thatu2019s not a status mail, but a u201Cnormalu201D mail, and I would like to update the corresponding message status in SAP.

I searched everywhere, but seems that I can't find the solution....

 

Somebody can help me, peraphs telling some documentation to read? If possible, I would not want to update DB table manually, I don't like to touch table like SOOD, SOST, etc.......this is too risky, but if it's the only way, I'll proceed.

 

The more close FM that I found that seems to satisfy my expectations is SO_OBJECT_STATUS_UPDATE, called by SX_OBJECT_STATUS_RECEIVE, seems that's the FM that update the status of request (also, that FM is called by SOST when want to set a request to OK).

 

Somebody know where to look for some documentation?

 

Thanks in advance for the attention, I'll post here if I'll find some more

Error- 'TABLES parameters are obsolete' while Creating itab in function module

$
0
0

I tried to pass value Using Internal table . but I could't Enter the value there.. 

 

I tried with,

 

Parameter Name --> it

Typing                --> type standard table of  

                         (or)

                         --> type

                         --> like

Associated Type--> MARA.

 

But here i got the error message " TABLES parameters are obsolete" i tried with all 1.type standard table of, 2.type, 3. like.   i didn't work . What to give in Typing field ? can anyone help me ?

Viewing all 8332 articles
Browse latest View live