on 07-24-2008 8:40 AM
Hi Friends
I am doing on Purchase order form.i need to set visible some column of matrix visible and active (in table Format and RowFormat) with out using form setting inter face , means through code using SDK.Is it possible
Thanks
Hi Muna,
it's like Roberto told you in the other thread.
the information is in the CPRF table.
there you can chance the order, active and visibility !
but the problem is - you can only change it when the business one is closed.
the reason: sap loads the settings in memory (from table) when you start the business one
and saves it back when you close it.
lg David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ibut i change position of my userfileld in table CPRF.Change cvalue of my userfield's 'ExapandIndx' and 'VisualIndx' but its not chane in form dispaly.
and we can also see same value in multiple row for example
"SELECT * FROM CPRF WHERE FormId='142' andColID ='12' and ItemID='38'"
but its getting 3 row . which one is actuall value
sorry, i haven't yet get a solution.
actually i need to position my userfield in between Quandity and UnitPrice. In Table CPRF I Changed its 'VisualIndx' and 'ExpandIndx'
Now in Table CPRF Record is Like below
ColID VisualIndx ExtendIndx
Quantity(Coulumn11) 13 13
UnitPrice(Coulnn 14) 17 257
UserField - 14 14
But still dispalying my UserField on last Column.
I did all the process after SAPB1 Application stoped
Edited by: Muna on Jul 24, 2008 12:03 PM
Edited by: Muna on Jul 24, 2008 12:05 PM
Muna,
I used the following query and it worked at my end:
update cprf set visualindx = 14 , expandindx = 14 where colid = 'U_SerialNo' and FormId='142' and ItemID='38'
and yes, give the filter for usersign if u want to make it user-specific.
also, as everyone here said, when you execute this query, your SAP B1 should be closed, as well as any other user should not be logged in the same company, to be on safe side.
Binita
Hi Muna,
Because of the settings by user, you have to include the usersing into your query. This will give you row by users.
See SDK documentation where CPRF table structure and fields are described very good.
-- for manager
SELECT * FROM CPRF WHERE FormId='142' andColID ='12' and ItemID='38' and UserSign = '1'
Please log off, now change the fields and log on again. as David described, B1 overwrites fields values at log off procedure.
Regards,
J.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.