Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

Append column to structure at runtime

$
0
0

Dear all,

 

I'm currently working on a strong problem where I need a new column in internal table.

 

So there is a standard transaction where the output is a fixed table structure which cannot be enhanced. No Append is possible.

 

Because of this I want to add a new column to the already existing strcuture during runtime.

 

Following example:

 

Data: wa_bkpf type bkpf.

 

*Now I want to add a new column to the structure.Lets say I want a new column "LIFNR" so that I can add a value to this.

 

wa_bkpf-lifnr = '12345'.

 

Is this possible?

 

Br


what values can this paramater take " DISVARIANT-VARIANT " ?

$
0
0

Hi all,

 

I have a report with this only parameter :

 

PARAMETERS: VARIANT LIKE DISVARIANT-VARIANT.

 

I want to execute this program to see a simple ALV grid , but do not know what value can I enter as input .

 

Any help will be appreciated.

 

Thank you.

BDC for MEKP transaction

$
0
0

Hello,

 

I am trying to record a BDC for transaction MEKP. MEKP transaction has two screens, first is the selection screen and then when EXECUTE is pressed another screen comes up showing the current data and the data to be updated (which is given in the selection screen). On this second screen, SAVE is to be pressed to update the data.

 

However, during BDC recording, after I press EXECUTE (on the first screen of the transaction) I do not see the second screen. Instead, the BDC recording ends.

 

Please let me know how to resolve this.

 

Thanks,

Amit.

BAPI_BUS2001_CREATE

$
0
0

Hi All,

 

I want to create project using BAPI_BUS2001_CREATE. Now, i know that you first need to call initialization. and i did that. see below for my flow.

1. initialization

2. call bapi create - project definition

3. call bapi create multi -> wbs element

4. pre commit

5. commit work

 

My problem is this, while the program is still processing the project definition creation, i am encountering the following errors

 

1. Object Project Definition TEST_PROJECT could not be created.

2. Project definition TEST_PROJECT, no authorization (expanded check)

 

 

I am also experiencing the second error when i'm creating project via CJ20N.

 

How can I fix these errors?

 

For details, please see attached files.

 

Thanks,

Isaac

Express document "Update was terminated"

$
0
0

Hi,

 

I am creating a Condition record using the transaction VK11 and when saving a message "Condition record saved" is coming. When i am exiting VK11 or when i am going to VK13 to display the condition record the following message is coming in a popup.

 

"Express document "Update was terminated" received from author <SY-UNAME>" is coming.

 

In the popup a button is there "Inbox".

 

If i am going inside the inbox following log is displayed

 

System ID: Quality

client: 100

User: SY-UNAME

Transaction: VK11

Update key: some alpha numaric number

Error info: 00 671: ABAP/4 processor DBIF_RSQL_SQL_ERROR

 

Kindly provide some valuble inputs.

 

Thanks,

sengodan.

QM - Inspection lot: How to flag for cancellation ?

$
0
0

Hello.
I even do not know, whether any official bapi offers this possibility.
So please be kind.

 

One of our customers is asking for a functionality, which allows her/him to cancel an inspection lot.
The customer says, that either after a special usage decision , or even without one, an inspection lot should be cancelled, "like it works in sap-gui".

 

I was several times already using the standard module (which is recommended by bapi), in order to record results belonging to an inspection

lot.

It is called : BAPI_INSPOPER_RECORDRESULTS.
It does not offer any possibility ( element of structure ), to cancel the inspection lot.

 

Another module, called  BAPI_INSPLOT_SETUSAGEDECISION also offers an importing structure, but again, some special element, which

could indicate to flag it, in order to cancel an inspection lot, is missing.

 

So, how can I achieve this ?
Will I have to provide special codes, codegroups, selection-sets, which will trigger this in background ?

 

THX in advance.

SALV problem different color per row depending on content of row

$
0
0

Hello,

I want to set the color of one item of a row depending on the content of the field value.

Can you help me?

See the example, the red one, but not for the whole column. Only if Matbeleg is initial, then it should be red.

Thanks

Selection screen values are reappear as defaults for new running of the report in sap query

$
0
0

Hi Experts,

 

 

I am running the query(SQ01) with selection values,the selection values reappear as defaults for new running of the report with new session,

 

 

Could you please how to control the values as should not reappear as defaults for new running of the report with new session,

 

 

 

Thanks.,

 

Krishna


ALV Grid grouping with a checkbox

$
0
0

Hello,

 

I have an ALV grid that displays customer master data, which is grouped by customer number. I added a custom check-box to the table and the grouping disappears when the check-box is made editable. Is there a way to have a custom check-box for each grouped customer number that is editable?

 

Thanks,


Zach

need find delivary address by plant level in me21n by plant level

$
0
0

Hi abapers,

 

Here my issue is :in my project,  plant address had changed to city address (new) from old city address.

 

here we maintainte 2 servers . 1.velocit

                                                  2. fusion

 

 

in velocity server while creating PO(ME21N) , when we give plant the new address has came in item level in delivary address tab

 

my issue came here

 

in fusion while creating PO(ME21N) , when we give plant the new address has not came in item level in delivary address tab the old address is coming , it shd come new address( what we change nw plant address from old address)

 

 

how to debug me21n in that so many includes are there which one is suitable' include' for delivery address (in item level) by plant to debug.

 

plz suggest me abapers

Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)

$
0
0

Hi everybody,

 

we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.

 

I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"

 

The system is a ERP only system with no BI content activated at all.

 

I don´t find any more errors nor any dumps or SLG1 entries related to this issue.

 

Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.

 

thanks & best regards

Peter

 

EDIT:

Running on ERP 6.0 EHP 7 SPS 4

LDB_PROCESS 'GLG'

$
0
0

Hi,

 

I've already used the FM LDB_PROCESS with SDF but it seems not working with GLG.

 

Anyone knows if this ldb has a different treatment?

 

Thanks

Need to send smart form as pdf without displaying smart form

$
0
0

I Need to send smart form as pdf in mail from list output with button click  without displaying smart form .I have searched the forum but those provide solution where we display the smart form and then send as pdf .

Update project definitions

$
0
0

Greetings,

 

I have troubles whit a bapi BAPI_PROJECTDEF_UPDATE, basically i want to changed tow projects definitions from a system BW to ERP, i called the bapi whit a destination RFC, the problem is the bapi change one of this definition but the sytem dont back to call again the function.for the next updating.


**in the program debugging.

the program call the bapi whit the first project definition and change it


CALL FUNCTION 'BAPI_PROJECTDEF_UPDATE' "Change Project Definition

  EXPORTING

  currentexternalproje = first_project_def

*  currentinternalproje = " bapi_proj_key-proj_key_int

  project_definition_stru = bapi_project_definition

  project_definition_up =  bapi_project_definition_up

  IMPORTING

  return = " bapireturn1

TABLES

e_message_table = " bapi_meth_message


the program close de procces, looks like a dumm.


WAIT UP TO 5 SECONDS.


and dont come back again to call hte next updating

 

CALL FUNCTION 'BAPI_PROJECTDEF_UPDATE' "Change Project Definition

  EXPORTING

  currentexternalproje = second_project_def

*  currentinternalproje = " bapi_proj_key-proj_key_int

  project_definition_stru = bapi_project_definition

  project_definition_up =  bapi_project_definition_up

  IMPORTING

  return = " bapireturn1

TABLES

e_message_table = " bapi_meth_message

Default layout in OO ALV..

$
0
0

Hi All,

 

 

I have a issue with ALV Layout. I am calling screen with ALV display in custom container. In that we added default layout settings is I_SAVE = 'U'.For For example i am selected default layout with 3 columns, for first time the screen displaying default layout which is 3 columns. When the user change layout that mean if the user selects another layout type(it contains 4 columns) and back to initial screen. Again user goes to alv screen it displaying 4 columns it is not showing default layout. When we run new transaction the it displays default layout(with 3 columns). If we modify the layout type it always showing modified layout.....We need default layout always.....is there any code changes we need to do for this please suggest.





Thanks,

Ashok.


reconciliation key of print document

$
0
0

Hi Expert,

 

 

Could you please help me out that how will I get correct reconciliation key of a print document?

 

what is link of tables??

 

I am getting stucked in my work.

 

Thanks in Advance..

Flexible specification short dump

$
0
0

Hi to all,

 

I have implemented solution as advised in forum QM - Flexible Inspection Specifications but I am getting a short dump saying that termination occurred in the ABAP program SAPLQEBU in QEBU_QASR_POSTING, main program RSM13000, include LQEBUU06.

It behaves like that only when I change MIC specification according to enhancement QEEM0024 and  try to save entered results. First, it gives me strange information that user locked the inspection lot and then a short dump without saving entered results and returning to inspection point identification. This flexible specification is used for 03 - inspection type and when are regularly used there is no errors but when used enhancement this error is happening. I assume this issue regards only when used implementation of QEEM0024.

Any ideas why this problem occurred? and how to solve it?

Maybe I am missing something? pls. help.

 

Thanks

CRAETE OPERATION USING BAPI_ALM_ORDER_MAINTAIN

$
0
0

HI ABAP EXPERTS,

I am trying to create components and operations for an existing  order(IW32) .

i can create component correctly,but i face a problem creating new operation

this is my bapi

could you provide me solving the error?

DATA wa_header_up TYPE bapi_alm_order_headers_up.
 DATA itab_header_up TYPE TABLE OF bapi_alm_order_headers_up.
 DATA wa_operation_up TYPE bapi_alm_order_operation_up.
 DATA it_operation_up TYPE TABLE OF bapi_alm_order_operation_up.
 data:        IT_PLANT TYPE STANDARD TABLE OF  BAPI_ALM_ORDER_HEADERS_I-PLANPLANT, "HADY PLANT        WA_PLANT LIKE LINE OF IT_PLANT,
 it_methods type standard table of bapi_alm_order_method,
 wa_methods like line of it_methods,
 it_header type standard table of bapi_alm_order_headers_i,
 wa_header like line of it_header,
 it_header_up type standard table of bapi_alm_order_headers_up,
 it_header_srv type standard table of bapi_alm_order_srvdat_e,
 it_header_srv_up type standard table of bapi_alm_order_srvdat_up,
 it_userstatus type standard table of bapi_alm_order_usrstat,
 it_partner type standard table of bapi_alm_order_partn_mul,
 wa_partner like line of it_partner,
 it_partner_up type standard table of bapi_alm_order_partn_mul_up,
 it_operation type standard table of bapi_alm_order_operation,
 wa_operation like line of it_operation,
 *it_operation_up type standard table of bapi_alm_order_operation_up,
 it_relation type standard table of bapi_alm_order_relation ,
 it_relation_up type standard table of bapi_alm_order_relation_up ,
 it_component type standard table of bapi_alm_order_component,
 wa_component like LINE OF it_component,
 it_component_up type standard table of bapi_alm_order_component_up,
 it_text type standard table of bapi_alm_text,
 it_text_lines type standard table of bapi_alm_text_lines,
 extension_in type standard table of bapiparex,
 return type standard table of bapiret2,
 wa_return like line of return,
 et_numbers type standard table of bapi_alm_numbers,
 wa_numbers like line of et_numbers.  wa_methods-refnumber = 1.  wa_methods-objecttype = 'OPERATION'.  wa_methods-method = 'CREATE'.  wa_methods-objectkey = '%00000000001'.  APPEND wa_methods TO it_methods.  wa_methods-refnumber = 1.  wa_methods-objecttype = ' '.  wa_methods-method = 'SAVE'.  wa_methods-objectkey = ORDERNO.  APPEND wa_methods TO IT_methods.  wa_header-orderid = ORDERNO.  wa_header-order_type = 'ZSM2'.  wa_header-mn_wk_ctr = 'HAHV'.  WA_HEADER-EQUIPMENT = '000000000010008442'.  wa_header-start_date = '20150217'.  wa_header-FINISH_DATE = '20150217'.  wa_header-short_text = 'HEADER'.  wa_header-NOTIF_NO = '300002927'.  APPEND wa_header TO IT_header.  wa_header_up-mn_wk_ctr = 'X'.  WA_HEADER_up-EQUIPMENT = 'X'.  wa_header_up-start_date = 'X'.  wa_header_up-short_text = 'X'.  APPEND wa_header_up TO itab_header_up.  wa_operation-activity = '0010'.  WA_OPERATION-WORK_CNTR = 'HAHV'.  wa_operation-control_key = 'SM01'.  wa_operation-plant = 'BC20'.  WA_OPERATION-DESCRIPTION = 'OPERATION DESCRIPTION'.  APPEND wa_operation TO IT_operation.  wa_operation_UP-activity = 'X'.  WA_OPERATION_UP-WORK_CNTR = 'X'.  wa_operation_UP-control_key = 'X'.  wa_operation_UP-plant = 'X'.  wa_operation_UP-description = 'X'.  APPEND wa_operation_up TO IT_operation_up.     wa_methods-refnumber = '000001'.     wa_methods-objecttype = ''.     wa_methods-method = 'SAVE'.     wa_methods-objectkey =  ORDERNO.     append wa_methods to it_methods.     clear wa_methods.     wa_methods-refnumber  = '000001'.                    " Component      wa_methods-objecttype = 'COMPONENT'.     wa_methods-method     = 'CREATE'.     wa_methods-objectkey  = ORDERNO.     append wa_methods to it_methods.     clear wa_methods.     wa_component-ACTIVITY                      = '0010'.     wa_component-material                      = 'TY-120'.     Wa_component-item_cat                      = 'L'.     wa_component-unload_pt                     = 'XXX'.     wa_component-requirement_quantity          = '4'.     wa_component-planT          = 'BC20'.     append wa_component to it_component.     clear wa_component.     refresh return.
 BREAK ABAPTEAM.     refresh return.     call function 'BAPI_ALM_ORDER_MAINTAIN'       TABLES         it_methods       = it_methods         it_header        = it_header         it_header_up     = it_header_up         it_header_srv    = it_header_srv         it_header_srv_up = it_header_srv_up         it_userstatus    = it_userstatus         it_partner       = it_partner         it_partner_up    = it_partner_up         it_operation     = it_operation         it_operation_up  = it_operation_up         it_relation      = it_relation         it_relation_up   = it_relation_up         it_component     = it_component         it_component_up  = it_component_up         it_text          = it_text         it_text_lines    = it_text_lines         extension_in     = extension_in         return           = return         et_numbers       = et_numbers.  DATA : XX TYPE I VALUE 0.     loop at return into wa_return.       IF WA_RETURN-TYPE = 'S'.         FLAG = 1.         ELSE.         FLAG = ''.         write:/   WA_RETURN-MESSAGE.       ENDIF.     endloop.     call function 'BAPI_TRANSACTION_COMMIT'       EXPORTING         wait = 'X'.     CALL FUNCTION 'DEQUEUE_ALL'       EXPORTING         _SYNCHRON = 'X'.     commit work and wait.

Dump while migrating condition record of table j_1btxcof via JIBTAX

$
0
0

Hello all,

 

After migrating condition records of table j_1btxcof via Tcode JIBTAX when user try to export the ALV list it is giving short dump "field symbol not assigned".

 

I can see field "COFINSLAW_KNUMH" is not present in the output structure i.e. ty_list_j_1btxcof ( Include J_1B_MIGRATE_TAX_RATES_TOP).

While same is present in the fieldcatalog.

 

 

I feel there must be some OSS note that is adding this field in the output structure but not able to find any.

 

Does anyone have any inputs on this issue.

 

Appreciate your help on this.

 

regards,

Lokesh

SM30 - ShortDump SAPSQL ARRAY INSERT DUPREC /// SAP-SCRIPT

$
0
0

Dear all,

i created a customer table which is maintainanced over SM30.

 

When i'm saving the new entries i get every time a shortdump, when i enter a key which is in the table,
the program dumps.

 

How can i prevent this dump?
Is there no opportunity to to throw a message or something like that?

 

I dont know, if this is important but i'm using the events for some selection after entering a value. :-)

 

 

2.
My Second Question:
Is there an opportunity to define the output lenght of my materialnumber ( for example ) dynamically?

 

If the number is 10 digits long -> make the output-size smaller
If the number is 3 digits long -> make nothing with the size?

 

Can i adjust my output dynamically?

 

 

 

 

Best Regards  and thank you all in advance,
Serhat

Viewing all 8768 articles
Browse latest View live