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

The customer has requested complete delivery error when doing PGI with WS_DELIVERY_UPDATE_2

$
0
0

Hello All,

 

I have to update delivery quantity as 0 using PGI and reject the sales order for that i am using WS_DELIVERY_UPDATE_2 and then BAPI_SALESORDER_CHANGE.

 

But I am getting error 'The customer has requested complete delivery ' when I am executing the FM WS_DELIVERY_UPDATE_2.

 

can you please let me know the reason for this

 

Thanks,

Kishore.


SAP BO - Get in SAP BO (Study)

$
0
0

Hi everyone, the company where i work before give a course about SAP BO and i wanto to know how can i do for get SAP BO study version ?

Thanks

To avoid the symbol of for sales text in smartforms output.

$
0
0

Hi Experts,

 

    Suppose, I have the & symbol in sales text. The print preview comes fine first time.But when edit/alter that sales text, while print preview it comes with <<&>>. Is it the fault of text editor or in our variable?. I am using tline-tdline field for storing the sales text. If anyone experienced this issue earlier please guide me for avoid this issue. Thanks in advance.

 

 

Regards,

Kavi

Read the Zipped Base64-encoded csv files

$
0
0

Hi Gurus,

 

I have a requirement to read a zipped Base64-encoded CSV files from Application Server .

 

i have gone through existing posting to use class CL_ABAP_ZIP  , method get , load etc.

 

has any body used this class to read the zipped base64 CSV file .

 

My requirement is to read the file and create contract in ECC .

 

The zipped folder can have 1 or 4 files .

 

Any inputs are much appreciated .

 

we are on ECC 6.0 .

 

Thanks

 

 

 

 

 

 

 

 

 

 

 

 

Custom fields not getting saved in KNA1 on click "Save" from XD01

$
0
0

Hi Experts,

 

Let me explain my approach first. I used Customer_add_data and Customer_add_data_cs to add new subscreen on XD01, XD02 and XD03.

I created append structure in KNA1 and added 6 custom fields there.

 

I followed SAP links and written code at below calls:

 

IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN

IF_EX_CUSTOMER_ADD_DATA_CS~GET_DATA

IF_EX_CUSTOMER_ADD_DATA_CS~SET_DATA

 

IF_EX_CUSTOMER_ADD_DATA~CHECK_DATA_CHANGED

 

Later I created my function group and under this FG I created one subscreen containing fields of Z Append structure of KNA1. Written code in PBO and PAI of the same. Fetching field data from memory and setting to fields.

 

I am successfully able to view data in custom fields of custom tab when I click on this custom tab. I am able to save values in KNA1 table as well after viewing. In XD02 and XD03 I am able to view all custom values under custom tab.

 

But unfortunately I am unable to save these custom values in KNA1 when I don't click on custom tab and save customer directly from main screen (XD01).

 

I put debugger in all implemented code areas and found that nothing is getting called when I don't click on custom tab and directly click on save.

 

As per requirement these values should get saved even though we don't click on custom tab. I read many SDN and outside SDN posts but unable to find solution of this issue.

 

Please help me sharing your expertise..

 

Thanks!

 

-Akanksha 

Alv change Layout Issue

$
0
0

Hi All,

 

when I am trying to change the Alv layout, I can see some duplicate entries and which were not used in the Report.

 

please some one help me how can I restrict those entries. issue shown in the below image.

issue in me21n in address tab?

$
0
0

Hi sap gurus,

 

 

In ME21n tcode when i gave plant (XXXX)  under delivary adress tab the address is coming properly but under address details buttion the phone number is  not coming . please see attachment. it is very urgent .plz guide me.

How to copy custom fields added in a new screen group in XD01 while copying a customer

$
0
0

Hi folks,

 

In XD01, I have added a new a screen group which consists of some custom fields.When I create a new customer by copying an existing customer the custom fields do not get copied.

 

Is there a BADI or a user exit which helps me acheive this functionality??

 

Alternatively if I want to upload these custom fields via a BDC program or LSMW I donot find my newly added screen group in the recording session. I cannot proceed to populate the custom fields in this way either.

 

Looking for a solution.

 

Thanks and regards,

Kawish


Badi for checking recipient field of account assignment tab of PO

$
0
0

Hi,

 

I am using Badi ME_PROCESS_PO_CUST to check whether user enters correct user id in the field recipient field (Goods Recipient/Ship-To Party) account assignment tab of PO.

 

 

whcih method I can use for it for validation of user with table USR21-Bname.

 

 

Recipient field name:WEMPF

 

recipient field.jpg

Can some body guide me,please?

 

Regards,

removing namespace in xml output -

$
0
0

Hi Friends,

I need to remove <asx:abapversion = "1.0" xmlns:asx = " http://www.sap.com/abap.xml" > <asx:values>. The issue is i am converting dynamic internal table to XML . So, i am using only CALL TRANSFORMATION ID for generation of XML. The problem is as soon as i am removing asx string from the code using replace occurence by '' the xml output is coming wrong. In the first code, if i keep the above mentioned namespace in the code , the output is coming perfectly fine as shown by SAP_CXC_MMD_20150215_190117.xml . In the 2nd code, when i replace the namespace by space , the output comes wrong as shown by SAP_CXC_MMD_20150215_192057.xml. Please tell how to solve this issue.

Regards,

Saurav Lahiry

ABAP debugging, catch exception

$
0
0

Hello, experts!

 

Is there any way for catching exception from "insert <tabname> from table itab" during debugging, if there's no any exception handling in code? I want to know what is the error text to analyze it in more detail. I can't modify a program, because it has been generated automatically (it is a data loading program for BW extractor), so I need any case to insert error handling or get the error message while debug before program exit.

 

Any suggestions would be appreciated.

 

Thanks,

Andrew.

Update the Sales document flow with purchase order details

$
0
0

Hi,

 

I have a requirement, where-in I have to create a sales order when a purchase order is created and update the document flow.

I have used the BAPI to create the sales order, but I'm unable to update the document flow, would be really thankful if you could please help.

 

Thanks.

Delimiting Roles via Ecatt using BAPI_USER_ACTGROUPS_ASSIGN

$
0
0

Hello All,

 

I'm trying to delimit roles for user via eCATT using a BAPI, BAPI_USER_ACTGROUPS_ASSIGN.

 

Passing the importing parameter "username" and in the Tables parameter"ACTIVITYGROUPS"  passing the respective parameters AGR_NAME(Role), FROM_DAT(Start Date),TO_DAT(termination date - 1).

 

I'm passing data via flat-file txt in below format:

 

username1 role1 startdate enddate

username1 role2 startdate enddate

username2 role1 startdate enddate

username2 role2 startdate enddate


Problem I'm facing is for username1 only role2 is assigned to user & for username2 only role2 is assigned.

When I go in debug mode I can see for username1 first role1 is assigned but as soon as second varriant comes with role2 for username1 it deletes role1 & role2 is assigned.

same is happening with username2


Please guide.


regards

Vikram

Enhancement in Transaction FB70

$
0
0

Hi.

In T.Code: FB70 during creation need to update Account Document number in BSEG-XREF1 field for every item, I tried with BTE: SAMPLE_PROCESS_00001130, but in this moment, although the document number has been generated yet not getting any idea how to pass the same Account Document number in field BSEG-XREF1 field to get updated.

 

Any ideas would highly be appreciated??? Thanks in advance for your help.

BAPI_SALESORDER_CREATEFROMDAT2 - serial profile -issue

$
0
0

Hi,

 

We have a problem when creating order using BAPI -  BAPI_SALESORDER_CREATEFROMDAT2.

The order is created without serial profile so i can't update a serial number to a material in the order.

I've checked in TCODE - MM03 and there is a serial profile for the material .

 

I found workaround but its not logical :

 

First execute the bapi with other plant  for example 0099 and not transfer storage location and shiping point.

after the BAPI_SALESORDER_CREATEFROMDAT2 is executed than run

BAPI_SALESORDER_CHANGE with the parameter i want for those fields.

it's work but it's not logical .

 

 

Is there a logical solution for this issue?

Thanks .


Changing a window's position in a smartform via entering values in a selection screen | Retrieve or insert data to a structure

$
0
0

Hi experts, I am new to ABAP.

 

I am working on smartforms, the idea is to gives the user the possibility to change the window's position by putting the values from a selection screen.

 

exemple : a selection screen which contains 3 fields :

 

1 - the user tapes the name : %DINFODOC

2 - Left margin : 4

3 - Upper margin : 6

 

these values will be sent to the form and the specified window will get the new position...

 

 

I wanted to know where is the information about the window's position is stored.

 

For exemple the "Left margin" field is WLEFT, and it's sotred inside SSFSCREEN. (see the attached image)

 

But SSFSCREEN is a structure and it's not possible to retrieve or insert data.

 

 

Thank you very much.

 

Regards.

Automatic re scheduling of cancled job

$
0
0

Hello,

 

I am looking for a SAP standard ABAP proram to re - run cancled jobs.

 

All I want to specify is the name of the job and the status (cancled)

 

Obviously this program would have to be sheduled as a job itself.

 

Does anything alike exsist?

 

Thanks

 

Matthias

How to move data from dynamic internal table into static internal table.

$
0
0

Hi Experts,


 

I have move data from dynamic internal table to static internal table means <dyn_table> this is the dynamic internal table having records.These records are i want to move into  gt_dyntab this internal table.gt_dyntab in this internal table two fields having name nad data.The name field is holding internal table name and data field is holding column of internal table, So i want move records into in data field of internal table gt_dyntab.Anybody can help me for this requirement.


 

CREATE DATA gs_dyntab-data TYPE STANDARD TABLE OF (v_kotab).


 

APPEND gs_dyntab TO gt_dyntab. CLEAR gs_dyntab.

 


MOVE-CORRESPONDING <dyn_table> TO gt_dyntab-data.

 



Thanks.

SAP ALV Grid standard printing - error. HELP!

$
0
0

Hi everyone,

 

Any of you ever had this problem in the standard printing option of an ALV GRID?

 

Print of the spool order preview:

Capture.PNG

 

Thanks in advance,

 

André

Printer popup infinite loop me23n

$
0
0


hello

We have custom output type and adobe developed for PO form. Accordingly NACE settings have been done. However when one goes to me23n and tries to invoke printer popup, it does come up but after cancelling , it keeps on coming up no matter the use clicks on which button. This does not happen if we go ahead and take the preview. We debugged and found the PREOUTPUT is not getting reset. Not happeneing with standard medruck, any inputs are helpful.

thanks in advance,

Viewing all 8768 articles
Browse latest View live


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